Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm building a code where at some point I need to save the file to a new location with a specific file name, which is also specified by the code. I would like to be prompted for this but it only saves if I specify the path. This is the bit I have already written and can't go further: Dim NewName As String NewName = mRateName & " " & Validade & ".xls" If MsgBox("Save file as " & NewName & "?", vbYesNo, Save) = vbNo Then Exit Sub ActiveWorkbook.SaveAs FileName:=NewName Can anyone help me? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to code the Macro to save and close a file? | Excel Discussion (Misc queries) | |||
FILE 'SAVE AS' IN VBA CODE | Excel Discussion (Misc queries) | |||
Macro VBA code to name Save-As file | Excel Worksheet Functions | |||
Save Excel file - prompts to save - no Volitile functions used | Excel Worksheet Functions | |||
prevent user from saving file to a folder but allow my code to save from behind. | Excel Programming |