Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save As Version


Hi.

I use a macro to create a workbook. At the end of the macro I tel
excel to bring up the save as dialog using:

myname = Application.Dialogs(xlDialogSaveAs).Show
If myname = False Then MsgBox "You cancelled the Save operation."
vbInformation, "Cancelled"

the problem that I have is that it asks what version I want to use.
need to use excel vs 97. How can I get this dialog to stop asking m
for a version so that it just knows to save it in xl97 format

--
ianrippin

-----------------------------------------------------------------------
ianripping's Profile: http://www.excelforum.com/member.php...nfo&userid=320
View this thread: http://www.excelforum.com/showthread.php?threadid=27112

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Save As Version

Dim fName as String
fName = Application.GetSaveAsFileName()
if lcase(fName) < "false" then
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=fName, _
FileFormat:=xlWorkbookNormal
Application.DisplayAlerts = True
Else
MsgBox "You cancelled the Save Operation", _
vbInformation, "Cancelled"
End if

Remove Application.DisplayAlerts = False if you want notification if you
are going to overwrite an existing file.
See Help on GetSaveAsFilename for additional arguments. GetSaveAsFileName
displays the file saveas dialog, but only returns the fully qualified
path/name of the selection, so you then control saving of the file as shown
above.
--
Regards,
Tom Ogilvy

"ianripping" wrote in message
...

Hi.

I use a macro to create a workbook. At the end of the macro I tell
excel to bring up the save as dialog using:

myname = Application.Dialogs(xlDialogSaveAs).Show
If myname = False Then MsgBox "You cancelled the Save operation.",
vbInformation, "Cancelled"

the problem that I have is that it asks what version I want to use. I
need to use excel vs 97. How can I get this dialog to stop asking me
for a version so that it just knows to save it in xl97 format?


--
ianripping


------------------------------------------------------------------------
ianripping's Profile:

http://www.excelforum.com/member.php...fo&userid=3209
View this thread: http://www.excelforum.com/showthread...hreadid=271123



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
How do I save an Excel 97-2003 version or 2007 version for Mac 200 Bronigal Excel Discussion (Misc queries) 1 December 7th 09 08:04 AM
save in excel version 2 Ken Excel Discussion (Misc queries) 1 February 7th 09 03:19 PM
save excel version 2 Ken Excel Discussion (Misc queries) 1 February 7th 09 03:13 PM
Save As with Different Version Name TaffyBlue74 Excel Discussion (Misc queries) 3 June 10th 08 12:32 PM
save a spreadsheet file with same name but different version ASDonnelly New Users to Excel 1 April 13th 06 09:27 AM


All times are GMT +1. The time now is 04:56 PM.

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"