Link to home
Start Free TrialLog in
Avatar of mcs26
mcs26

asked on

VBA GetSaveAsFilename

Hi,

I am using the GetSaveAsFilename method to allow a user to select where they wish to save a file. The only problem is that I cannot seem to specify where the default save location should be? Or do I have to use another method?

Any thanks would be great,

Mark
Avatar of apresence
apresence

Specify the folder you want to save in with a "\" on the end of it:
Application.GetSaveAsFileName("C:\SomeDir\")
Avatar of mcs26

ASKER

isn't the first argument of the GetSaveAsFilename method "intial filename"?
ASKER CERTIFIED SOLUTION
Avatar of apresence
apresence

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the way I suggested makes you feel uncomfortable, or there's another reason you can't use it, you can also do this:
ChDir("C:\SomeDir")
Application.GetSaveAsFileName
Avatar of mcs26

ASKER

ah I should never have doubted you!