Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel - ways to find out where you are
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01516755
Message ID:
01516890
Views:
48
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform