LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Question about ActiveWorkbook.SaveAs()

Here is a basic sample of my code:

For j = 1 to 3

ActiveWorkbook.SaveAs Filename:="myfile.xlsm", _
FileFormat:=xlOpenXMLWorkbookMacroEnabled, _
CreateBackup:=False

Next ' j

If the SaveAs filename already exists, the user will be
prompted with a dialog box that says:
"A file named 'myfile.xlsm' already exists in this location.
Do you want to replace it?"

Is there a way to determine whether the user selected
"Yes" or "No" to replace the file?



 
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
saveas ActiveWorkbook.SaveAs Filename:=Range("A1").Value DarrenL Excel Programming 4 April 18th 09 07:54 AM
ActiveWorkbook.SaveAs Little Penny[_3_] Excel Programming 2 January 16th 08 02:23 AM
ActiveWorkbook.SaveAs question(s) Rick S. Excel Programming 3 November 13th 07 09:49 PM
ActiveWorkbook.SaveAs franks Excel Programming 6 August 6th 07 10:04 PM
activeworkbook.saveas J Silver Excel Programming 0 June 25th 04 09:01 PM


All times are GMT +1. The time now is 05:18 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"