Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Sheet
Message
 
To
08/05/2001 15:11:47
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00504942
Message ID:
00504950
Views:
14
This message has been marked as the solution to the initial question of the thread.
>HI,
>What is property I need to use in order to change the name of Excel Sheet (Sheet1, Sheet2, ect.)
>
>THank you,
>Christian

I use the following code to name the sheet I am working with:
loExcel = CreateObject("Excel.Application")
loExcel.SheetsInNewWorkBook = 9
loWorkBook = loExcel.Workbooks.Add()

loWorkSheet = loWorkBook.Worksheets[1]
loWorkSheet.Name = 'CCA'
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform