Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Save Excel Worksheet As CSV - No Save As Dialog

I need to save an Excel worksheet as a CSV file using VBA without any prompts
or dialogs. Using the .SaveAs method, however, leads to a prompt:

"Do you want to save the changes you made to filename.csv?"

I don't get this prompt if I save the file as an .xls (due to
SaveChanges=False / DisplayAlerts=False/...). Can this be done to csv files
without resorting to OLE commands, etc.?

Any help/suggestions greatly appreciated.

SQLServant
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Save Excel Worksheet As CSV - No Save As Dialog

Found an answer a few seconds after posting this questions (don't u hate it
when that happens?).....

I used the .Saved=True method just before closing the newly created csv
file. This stopped the prompt.

SQLServant



"SQLServant" wrote:

I need to save an Excel worksheet as a CSV file using VBA without any prompts
or dialogs. Using the .SaveAs method, however, leads to a prompt:

"Do you want to save the changes you made to filename.csv?"

I don't get this prompt if I save the file as an .xls (due to
SaveChanges=False / DisplayAlerts=False/...). Can this be done to csv files
without resorting to OLE commands, etc.?

Any help/suggestions greatly appreciated.

SQLServant

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save file dialog box in Excel falcios Excel Discussion (Misc queries) 4 February 12th 07 08:29 PM
Calling Excel File Save As Dialog Bookreader Excel Programming 3 July 14th 06 05:40 PM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
How to not show save dialog after reading from excel file. philg1984 Excel Programming 1 February 13th 06 08:41 PM
Changing Save As Type in Save as dialog box Phill Excel Programming 2 August 22nd 03 12:38 PM


All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"