I have a workbook that has 3 sheets. I have a macro that performs different operations and I'd like to add a step to take the active worksheet, prompt me to save that individual sheet as a CSV file (using the Save As prompt), but not affect the current workbook and continue on with further steps.
I'm able to prompt the Save As dialog, but that changes the file name of the active workbook, which I don't want.
I'm able to prompt the Save As dialog, but that changes the file name of the active workbook, which I don't want.
Code:
MsgBox "Save CSV file."
Application.Dialogs(xlDialogSaveAs).Show