mbentley
Registered User.
- Local time
- Today, 05:45
- Joined
- Feb 1, 2002
- Messages
- 138
I'm having trouble with the Save As FileDialog type.
My code:
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogSaveAs)
Returns an <Object does not support this action> error.
Funny thing is that this works fine:
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
Unfortunately, I need to use the former (I think).
What I ultimately need to do is to use the FileDialog to return a string variable that I can use later. I don't actually need it to save a file, I just need the path and file name in a string.
Thanks!
My code:
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogSaveAs)
Returns an <Object does not support this action> error.
Funny thing is that this works fine:
Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
Unfortunately, I need to use the former (I think).
What I ultimately need to do is to use the FileDialog to return a string variable that I can use later. I don't actually need it to save a file, I just need the path and file name in a string.
Thanks!