Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel - Last cell used
Message
 
To
12/05/2005 11:47:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01013459
Message ID:
01013464
Views:
11
This may help:
*xlLastCell=11
*xlR1C1 = -4150
lcLastCell = ObjExcel.ActiveSheet.Range("A1").SpecialCells(xlLastCell).Address(.f.,.f.,xlR1C1)
?ObjExcel.ActiveSheet.UsedRange.Rows.Count
?ObjExcel.ActiveSheet.UsedRange.Columns.Count

>Hi everyone,
> I am working on a project where I open an existing excel sheet and add information to it from a DBF file. So far I figured out how to open the spreadsheet and add to it but I am having trouble finding out what column I can start at. I don't want to write over data that is already there. Does anyone know how to find the first available column? I think the concept is to go end of the spreadsheet "A65536" and then CRTL+END but having trouble getting it to work. Any help would be greatly appreciated.
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform