Thread: [Solved] PDF default path
View Single Post
 
Old 07-02-2018, 04:47 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,375
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You might try inserting:
.Name = Options.DefaultFilePath(wdDocumentsPath) & "\" & ActiveDocument.Name
before:
.Format = wdFormatPDF

In some Word versions, at least, wdDocumentsPath is unstable and returns whatever the current path is rather than the default path.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote