macros et classeur partagé

Patrick POULY 0 Reputation points
2024-10-15T15:52:58.36+00:00

Bonjour,

j'ai un classeur tout simple : une feuille liste de personnes avec une colonne pour le nom et une autre pour le numéro d'adhérent. La feuille est protégée pour éviter les erreurs de manipulation.

Ce classeur doit être partagé sur un réseau interne (ancienne méthode) et je veux que les utilisateurs puissent trier la liste par nom ou par numéro.

J'ai donc fait 2 boutons avec chacun une petite macro, qui ôte la protection, effectue le tri demandé, et réactive la protection.

Tout fonctionne bien, sauf quand je veux partager le fichier !

Précision : j'aurais bien joint le fichier Excel pour être plus clair, mais je ne vois pas de possibilité pour joindre une pièce...

Un grand Merci à qui saura m'expliquer comment m'en sortir.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,116 Reputation points Microsoft External Staff
    2024-10-16T02:30:34.79+00:00

    Hi,

    This is an English language forum, I suggest you transform the language to English. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

    About your question cannot run Macro in shared Workbook, this is by design behavior for shared Workbook, if you run macro and it will break the protection, this is not allowed.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.