Constantes Excel 97 et aussi comment trouver une constante.

Constantes Excel 97 et aussi comment trouver une constante.

Messagepar thierry.ceretto » 21 Nov 2008 à 10:41

Comment trouver une constante ?
Source : Notes/Domino 6 and 7 Forum

In Excel:
1. record a macro that does something similar to what you want to do from Lotus Script (Tools | Macro |Record New Macro...)
2. stop the macro recording (Tools | Macro | Stop Recording)
3. edit the macro (Tools | Macro | Macros... | Edit)
4. set a Break Point on the first line of code (où ce trouve la constante) in the macro (Debug | Toggle Breakpoint) (Débogage > Basculer le point d'arrêt)
5. run the macro (Run | Run Sub) The macro will pause at the breakpoint you set in step 4.
6. hold the cursor over each Excel constant to reveal its numeric equivalent. For example, hovering the cursor over the word "xlCenter" in the line ".HorizontalAlignment = xlCenter" shows that xlCenter = -4108

:D
"Plouf..." Anonyme
thierry.ceretto
Posteur expérimenté
Posteur expérimenté
 
Message(s) : 331
Inscrit(e) le : 29 Sep 2005 à 15:55
Localisation : Nancy

Retour vers Importation/Exportation vers d'autres applications