Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Examples for Word and Excel automation
Message
From
29/01/2002 14:37:44
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00609170
Message ID:
00612374
Views:
22
>after looking at the macro tool for excel I ran a test about 50% of the code worked fine the other 50% just took a little gray matter. The "xTopBorder" had to be replaced with numbers, after a few test I found the number(s) I was looking for.

You do not need to guess the magic numbers. Use an include file. You can find Excel.H in many places, including Excel's VBA object browser or also at the Wiki:
http://fox.wikis.com/wc.dll?Wiki~ExcelConstants~VFP

Put that in a file called Excel.h and somewhere in your program add:

#INCLUDE Excel.h

Then you can just use the constant's names like xTopBorder in your statements.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform