Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append Routine
Message
From
10/12/1998 10:27:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/12/1998 10:17:19
Thierry Yuen
Stantec Architecture Ltd.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00165163
Message ID:
00166066
Views:
24
>Cetin:
>
>For some reason, the database doesn't like the 'xlExcel2' at the end of the SaveAs. Do you know why this may be? It's telling me that the variable 'xlExcel2' is not defined. Apparently, it's reading it as a variable and not as an object name. Your thoughts?
>
>Thierry
Thierry,
It's a constant value and defined as 16. In the code I sent I should have included :
#define xlExcel2 16
and again pls beware this is for Excel8 (Excel97). I don't know values for Excel95 (and correct syntax). If you're using Excel95, you could get the correct value :
-Open Excel
-Select tools\macro\VB editor
-Press F2 to bring up "Object browser"
-Find needed xlConstant type ie: xlFileFormat
-On right window click needed Constant ie: xlExcel2
-Below the window constant value is displayed
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform