Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-30-2022, 07:32 AM
grNadpa grNadpa is offline Set (temporary) SaveAs path Windows 10 Set (temporary) SaveAs path Office 2016
Advanced Beginner
Set (temporary) SaveAs path
 
Join Date: Mar 2022
Posts: 46
grNadpa is on a distinguished road
Default Set (temporary) SaveAs path


Cannot seem to set the path for Word 2016 SaveAs screen. The statement
Code:
MsgBox Options.DefaultFilePath(wdDocumentsPath)
displays the directory I want.
But, after executing
Code:
'source: based on https://wordmvp.com/FAQs/MacrosVBA/SetDefFilename.htm
'change properties
Dim dtToday As Date
  dtToday = Date
    If Documents.Count > 0 Then
         Set dlgProp = Dialogs(wdDialogFileSummaryInfo)
         ' Establish title
         dlgProp.Title =  "Waiver_" & dtToday & ".docx"
         ' Set the values
         dlgProp.Execute
         ' Show the dialog for testing purposes
         dlgProp.Show
    End If
The SaveAs dialog box shows up but with an entirely different path.

And with the bogus message
Quote:
You don't currently have permission to access this folder
(It's the the path I last used to save a .docm document).

The keywords I use in this forum's search bring up how to change file names, but not directories.

I guess this ability qualifies merely as a "nice to have". But it really would be a nice-to-have.
Reply With Quote
 

Tags
path, save as docx, vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Temporary work file reglilly Word 4 05-15-2018 12:13 PM
How to delete a temporary ~$ Word file? Belloc Word 3 08-16-2017 06:24 AM
Set (temporary) SaveAs path Change word temporary location mkhorrami Word 1 01-11-2016 04:09 AM
Where does Word 2010 save temporary files? JonahSnow Word 1 06-03-2015 12:31 AM
Set (temporary) SaveAs path VBS saveas API behaviour is different from Menu saveas Ahmed AbuZekry Word VBA 2 03-23-2015 02:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft