Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel - ways to find out where you are
Message
De
30/06/2011 13:31:03
 
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:
01516755
Message ID:
01516890
Vues:
49
>In Visual FoxPro using automation (VBA) code to move around in EXCEL, I know that I can move down one row by doing something like:
>
>oRange = oRange.Offset(1,0)
>
>Or I can find out the last Row where something was actually written to a row and column, as follows:
>
>lnLastRow = oSheet.UsedRange.Rows.Count
>
>But, what other ways are there? For example, how can you know where you stand with a ROW or COL OffSet?
>
>What other ways can you find out where you are at any moment in an Excel file when loading data to it?

Stop thinking in terms of "where you are" and instead, think of the cells in Excel like a two-dimensional array. You keep variables that track what you're doing, just as you would for an array.

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

Click here to load this message in the networking platform