Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening excel through VFP
Message
From
12/06/2001 12:32:56
 
 
To
12/06/2001 12:10:58
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00518464
Message ID:
00518469
Views:
10
>I am trying to open excel in VFP and create a new worksheet.
>
>I create the object by creating the following object
>
>oexcel=CREATEOBJECT("excel.application")
>
>from this point forward I do not know how to create a new sheet.
>
>when I type in ?oexcel.activesheet it returns "Null" so I guess I have to
>create a new sheet before I can reference the active sheet property
>
>any ideas ?
>
I believe you are correct. You'll have to do something like this:
ows = oexcel.Worksheets.Add
The Excel application has lots of methods and properties. "Microsoft Office Automation with Visual Foxpro" by Tamar Granor and Della Martin, put out by Hentzenwerke Publishing, is a good starting place for working with it.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform