Hi there
I know this is really simple but I seem to be struggling with the syntax to get this to work. As part of a macro in Excel I want the macro to open the save as box and allow the user to change path and filename before the macro continues. I have used this before for file open set as a variable and it works fine but cannot get it to work for save using the same idea.
This one works great: myfileopen = Application.GetOpenFilename(“Text Files,*.txt”) - set as a variable at the beginning of the macro.
This variable however does not - myfilesave = ActiveWorkbook.SaveAsFilename("Excel files,*.xls)
What am I doing wrong?
Thanks Sandra
I know this is really simple but I seem to be struggling with the syntax to get this to work. As part of a macro in Excel I want the macro to open the save as box and allow the user to change path and filename before the macro continues. I have used this before for file open set as a variable and it works fine but cannot get it to work for save using the same idea.
This one works great: myfileopen = Application.GetOpenFilename(“Text Files,*.txt”) - set as a variable at the beginning of the macro.
This variable however does not - myfilesave = ActiveWorkbook.SaveAsFilename("Excel files,*.xls)
What am I doing wrong?
Thanks Sandra