View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Default SaveAs type...

Trevor,

SaveAs has a FileFormat property. However, the help says ... For an existing
file, the default format is the last file format specified; for a new file,
the default is the format of the version of Excel being used. ... so it
should default to Excel file. If you want to force it, set it to
xlWorkbookNormal.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jesterhoz" wrote in message
...
Hello All,

I have a macro that imports a text file, does some manipulations and, in

the
end, displays the SaveAs dialog box. The default "Save as type" is

"Text(Tab
Delimited)". However, the user is always going to want this changed to
"Microsoft Excel Workbook".

Does anyone know how to change the "Save as type" to be "Microsoft Excel
Workbook" using VBA?

Any help would be much appreciated.

Thanks,

Trevor