![]() |
|
#1
|
|||
|
|||
|
I'm using Excel and create a button that runs the assigned macro:
Code:
ActiveWorkbook.SaveCopyAs "C:\" & Range("B2").Value & ".xls", FileFormat:=56
Another one that just forces users to save the file; if not, cannot exit the window: Code:
Sub forceSaveAs()
Dim NewBook
Dim fName
Set NewBook = Workbooks.Add
Do
fName = Application.GetSaveAsFilename
Loop Until fName <> False
NewBook.saveAs Filename:=fName
End Sub
|
|
#2
|
||||
|
||||
|
Hi tifanide,
If you want the user to continue working in the newly-saved workbook, you could use: ActiveWorkbook.SaveAs Filename:="C:\" & Range("B2").Value & ".xls", FileFormat:=56
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Thanks for that.
|
|
|
|