Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LastCell : Excel Automation
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00990663
Message ID:
00990673
Views:
22
This message has been marked as the solution to the initial question of the thread.
>loExcelSheet.Range("A1:IV64000").Select

Michael,

You can make use of the End property to simulate hitting the End and arrow keys in Excel to get to the end of a range like this:
#Define END_DOWN  -4121
#Define END_RIGHT -4161

WITH loExcelSheet
   .Range("A1", .Range("A1").End(END_DOWN).End(END_RIGHT)).Select()
ENDWITH
Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform