Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1124 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  compiler un fichier excel

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

compiler un fichier excel

n°1237781
kancele
Posté le 03-11-2005 à 16:45:28  profilanswer
 

bonjour,
 
Connaitriez vous des soft qui permettrait de compiler un fichier excel (ayant macro et fonction en batteries) en un executable non modifiable par un utilisateur?
j'ai trouvé : (en cherchant sur google)
http://www.bluechillies.com/tellfriends.html?sid=28261
 
Le défaut est que l'executable issue de la compilation donne un fichier excel non protégé. l'utilisateur peut donc le changer comme il le souhaite !  
 
 
 
 
 
 
ce que je souhaite faire :  
 
j'ai un tableau avec une 30taines d'onglets et des macros et formules dans tous les sens.
J'ai 250 personnes qui se servent de ce fichier comme d'un "modèle" de travail. Mais ils me l'ont tous fait "évoluer" au gré de leurs envies ! et à l'arrivée le fichier n'est plus "opérationnel" sur des fonctions que je considère comme essentielle.
J'ai bien évidement protégé les feuilles avec mot de passe 8 caractères dont 3 spéciaux! mais passer outre une protection excel ce n'est pas bien dur !  
auriez vous une solution de protection plus "aboutie" ?

mood
Publicité
Posté le 03-11-2005 à 16:45:28  profilanswer
 

n°1238450
kancele
Posté le 04-11-2005 à 10:30:02  profilanswer
 

hop l à

n°1239327
Fred_l
Posté le 05-11-2005 à 14:59:43  profilanswer
 

Ouai... Une bonne chasse à celui qui le modifie...
 
Non je rigole... Le pb c'est que quoi que tu fasse sous excel il te suffit de désactiver les macro pour passer outre tout !
Il faudrait pouvoir empêcher le message d'activation des macro au démarrage d'excel.
Je sais que c'est possible... mais il faut que je cherche...

n°1239339
Fred_l
Posté le 05-11-2005 à 15:28:38  profilanswer
 

Tu peux voir dans excel:
Outils--> options--> Sécurtité--> Sécurité des macros et mettre au niveau le plus bas.
 
Dans une macro désactive le menu de façon à ce que les users ne puissent plus y aller :
 
Ceci afin de trouver le bon controle : ( moi c'est le 18 qui correspond à Options et 15 au macro )
 
Application.CommandBars("Tools" ).Controls(1).Enabled = False
    Application.CommandBars("Tools" ).Controls(2).Enabled = False
    Application.CommandBars("Tools" ).Controls(3).Enabled = False
    Application.CommandBars("Tools" ).Controls(4).Enabled = False
    Application.CommandBars("Tools" ).Controls(5).Enabled = False
    Application.CommandBars("Tools" ).Controls(6).Enabled = False
    Application.CommandBars("Tools" ).Controls(7).Enabled = False
    Application.CommandBars("Tools" ).Controls(8).Enabled = False
    Application.CommandBars("Tools" ).Controls(9).Enabled = False
    Application.CommandBars("Tools" ).Controls(10).Enabled = False
    Application.CommandBars("Tools" ).Controls(11).Enabled = False
    Application.CommandBars("Tools" ).Controls(12).Enabled = False
    Application.CommandBars("Tools" ).Controls(13).Enabled = False
    Application.CommandBars("Tools" ).Controls(14).Enabled = False
    Application.CommandBars("Tools" ).Controls(15).Enabled = False
    Application.CommandBars("Tools" ).Controls(16).Enabled = False
    Application.CommandBars("Tools" ).Controls(17).Enabled = False
    Application.CommandBars("Tools" ).Controls(18).Enabled = False
    Application.CommandBars("Tools" ).Controls(19).Enabled = False
    Application.CommandBars("Tools" ).Controls(20).Enabled = False
    Application.CommandBars("Tools" ).Controls(21).Enabled = False
     Application.CommandBars("Tools" ).Controls(1).Enabled = True
    Application.CommandBars("Tools" ).Controls(2).Enabled = True
    Application.CommandBars("Tools" ).Controls(3).Enabled = True
    Application.CommandBars("Tools" ).Controls(4).Enabled = True
    Application.CommandBars("Tools" ).Controls(5).Enabled = True
    Application.CommandBars("Tools" ).Controls(6).Enabled = True
    Application.CommandBars("Tools" ).Controls(7).Enabled = True
    Application.CommandBars("Tools" ).Controls(8).Enabled = True
    Application.CommandBars("Tools" ).Controls(9).Enabled = True
    Application.CommandBars("Tools" ).Controls(10).Enabled = True
    Application.CommandBars("Tools" ).Controls(11).Enabled = True
    Application.CommandBars("Tools" ).Controls(12).Enabled = True
    Application.CommandBars("Tools" ).Controls(13).Enabled = True
    Application.CommandBars("Tools" ).Controls(14).Enabled = True
    Application.CommandBars("Tools" ).Controls(15).Enabled = True
    Application.CommandBars("Tools" ).Controls(16).Enabled = True
    Application.CommandBars("Tools" ).Controls(17).Enabled = True
    Application.CommandBars("Tools" ).Controls(18).Enabled = True
    Application.CommandBars("Tools" ).Controls(19).Enabled = True
    Application.CommandBars("Tools" ).Controls(20).Enabled = True
    Application.CommandBars("Tools" ).Controls(21).Enabled = True
 
Ainsi tu désactive les menus que tu veux pour que personne ne puisse modifier tes macros...
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  compiler un fichier excel

 

Sujets relatifs
[php] probleme avec ecriture de fichierMacro excel de sauvegarde [resolu]
[Excel VBA] Tracer des lignes sur un UserFormMacro pour excel
Supprimer derniere ligne d un fichier sans le parcourSupprimer derniere ligne d un fichier sans le parcouri
fichier non accessible pr un visiteur, mais oui pr le serveur [resolu][Résolu][VBA Excel] pb de copie
Les Beaux Arts pour Excel ?A quoi sert le fichier .htaccess ?
Plus de sujets relatifs à : compiler un fichier excel


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR