I have a macro which causes a sheet from the current workbook to be copied to a new workbook and then have that new workbook saved as a .CSV file to the user's desktop. I would like to preselect some items as follows:
The file type is ".CSV"
The file name is "Database"
The locaion is a bit trickier. I'd like to save to the desktop of the current user. We have roaming profiles here so I can't hard code in the path to save to.
The current code for the dialog box is:
How should I change this to get the selections I require?
Thanks in advance!
Onwards,
Q-
The file type is ".CSV"
The file name is "Database"
The locaion is a bit trickier. I'd like to save to the desktop of the current user. We have roaming profiles here so I can't hard code in the path to save to.
The current code for the dialog box is:
Code:
Application.Dialogs(xlDialogSaveAs).Show
How should I change this to get the selections I require?
Thanks in advance!
Onwards,
Q-