View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
invictus1964 invictus1964 is offline
external usenet poster
 
Posts: 1
Default Prompt for SaveAsDialog with file type preset.

I want to prompt the user for a save as file name and defualt the file type
to csv. I am trying
Application.Dialogs(xlDialogSaveAs).Show Arg2:=xlCSV
result: saves file as csv then code is interrupted
also tried
Filename = Application.GetSaveAsFilename( _
fileFilter:="Comma Seperated Values (*.csv), *.csv")
result: no interruption but does not save file and cannot recall name using
ActiveWorkbook.SaveAs