change the path of the filesaveas dialog box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using the saveas dialog box from a vba macro using this code:
On Error Resume Next
Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument
' Get the CommandManager object.
Dim oCommandMgr As CommandManager
Set oCommandMgr = ThisApplication.CommandManager
' Get control definition for the line command.
Dim oControlDef As ControlDefinition
Set oControlDef = oCommandMgr.ControlDefinitions.Item("AppFileSaveAsCmd")
' Execute the SaveAS command.
Call oControlDef.Execute
If I have a particular path that I have extracted in my code, can I get it to go to that path when calling the oControlDef.Execute? Like lets say instead of the current location of the file, I want the save as dialog box to open to the location of C:\Temp.