Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel again
Message
From
24/03/1998 12:13:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00086697
Message ID:
00086719
Views:
30
>>>>I've created my excel workbook, done what I need to do, now I want to save it as....
>>>>I think I've seen this here before, but I could not find it..
>>>>
>>>>I've tryed several variations of-
>>>>ox=ActiveWorkbook.SaveAs FileName:="C:temp\Book1.xls", FileFormat:=xlNormal,Password:="", WriteResPassword:="", ReadOnlyRecommended:=False,CreateBackup:=False
>>>>
>>>>any help
>>>>
>>>>TIA
>>>>Jeff
>>>
>>>ox.ActiveWorkbook.saveas("C:temp\Book1.xls")
>>>Cetin
>>
>>ox.saveas("C:temp\Book1.xls") is shorter and I think it would be c:\temp...
>>Cetin
>
>Ok got that, and thanks a lot.
>Just for future ref. Can I tell it to overwrite if file already exist ??
>
>thanks again
>
>Jeff
It should be :
ox.saveas("C:temp\Book1.xls",1) I guess. Saveoption is 3 vb constants and taking generally VB constants enumarate as 0,1,.. (Overwrite 2nd option)
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