Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding out programmatically how many rows in excel.
Message
From
27/01/2003 18:46:47
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00745897
Message ID:
00746038
Views:
36
>I don't quite get it...
>
>Here is my code which works fine except I only get the structure. Where would I put the code you stated. I tried it and got member worksheet does not evaluate to an object....
>
>
oleapp=CREATEOBJECT("Excel.Application")
#define xlUp -4162
OleApp.DisplayAlerts=.f.
filename1="environmentalsummary.xls"
oWorkBook=oleapp.workbooks.Open(filename1)
*oWorkBook.application.visible = .T.
***Manually Save ***
curdir='\dddata\tables\'

oWorkBook.Worksheets(1).Range("A1:T1").Select
cur_colm = oleApp.ActiveCell.Column
lastcell = oleApp.Cells(65536, cur_colm).End(xlUp).Address
oWorkBook.SaveAs(sys(5)+curdir+'upenviro3.dbf', 8)

HTH,
Winn Pauley
Previous
Reply
Map
View

Click here to load this message in the networking platform