Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation Changing Excel Tablename
Message
From
23/07/2001 11:17:19
 
 
To
23/07/2001 11:04:04
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00533881
Message ID:
00533940
Views:
12
Ernst,
Try:
oExcel.Workbooks.open(cTabelle)
HTH
>select * from ctablename into cursor dummy
>thisform.excelfile='TEST'
> COPY TO (THISFORM.excelfile) TYPE XL5
> cTabelle=fullpath(curdir())+alltr(thisform.excelfile)+'.XLS'
>
> MESSAGEBOX(cTabelle+' ERZEUGT',0)
>
> ***excel starten
> oExcel=createobject('excel.application')
> if type('oExcel')#'O'
> wait wind 'kein Excel installiert' timeout(3)
> return .f.
> endif
>
> oExcel.Workbooks.Add(cTabelle)
> oExcel.activesheet.cells.select
> oExcel.Selection.font.name="arial"
> oExcel.Selection.font.size=8
> oExcel.Selection.Columns.AutoFit
> oExcel.visible=.t.
>
>At this point Excel appears with the headding 'Microsoft Excel - Test1' not 'TEST' as expected.
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform