Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using variables to give Column Reference in EXCEL
Message
De
24/06/2011 11:28:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01515862
Message ID:
01515868
Vues:
48
>Although you can determine the last row and column and get the ALPHA character for the COLUMN and the numeric ROW, how do you use a memory variable with the RANGE property, such as lcColumn that might contain the letter "G" as the Column, for an example.
>
>
>lcEndColumn = "G"
>
>oExcel.ActiveSheet.Range("A1:G200").NumberFormat="$###,###";($###.###)"
>
Why bother with the letters and numbers? You can address everything in Excel using row and column numbers.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform