Thread: [Solved] Relative path to desktop
View Single Post
 
Old 05-18-2011, 11:35 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
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

For the 'My Documents' folder, you should be able to replace "\Desktop" with "\My Documents".

For the current document, it's:
MsgBox ActiveDocument.Path
(for a new unsaved document this will be empty)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote