Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Saving worksheet as .csv type

I would like the Save As dialog window when it opens to
automatically show worksheet file type as .CSV.

How can I incorporate that in Visual Basic code below:

Application.Dialogs(xlDialogSaveAs).Show "C:\DOC\Sample\"
+ MySheet + ".csv"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Saving worksheet as .csv type

William,

I'm not sure how using the dialogs, but here's an alternative

SaveName = Application.GetSaveAsFilename(Initialfilename:="C: \DOC\Sample\" & Mysheet & ".csv", _
FileFilter:="CSV (Comma Delimited) (*.csv), *.csv")
ThisWorkbook.SaveAs Filename:=SaveName, FileFormat:=xlCSV

Dan E

"William Maka" wrote in message ...
I would like the Save As dialog window when it opens to
automatically show worksheet file type as .CSV.

How can I incorporate that in Visual Basic code below:

Application.Dialogs(xlDialogSaveAs).Show "C:\DOC\Sample\"
+ MySheet + ".csv"



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
Saving words in excel so I can type them in and they pop up kselg Excel Discussion (Misc queries) 2 September 15th 07 04:38 AM
saving data type into a form Julie Excel Discussion (Misc queries) 5 March 17th 07 06:50 PM
I can see a worksheet, but I can't type in it or use the tool bar wanda Excel Worksheet Functions 1 March 1st 06 10:57 PM
type mismatch on saving excel calculation mode via VB app Ken Shaffer Excel Discussion (Misc queries) 3 November 2nd 05 01:51 PM
Problem with saving REAL type to txt file Domagoj Vulin Excel Programming 1 July 23rd 03 09:41 AM


All times are GMT +1. The time now is 05:39 AM.

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

About Us

"It's about Microsoft Excel"