Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. myPicPath = Options.DefaultFilePath(wdPicturesPath)
  2.  
  3. With Dialogs(wdDialogToolsOptionsFileLocations)
  4. .Path = "PICTURE-PATH"
  5. .Update
  6. myPicPath = .Setting
  7.  
  8. If Not Right$(myPicPath, 1) = "" Then
  9. myPicPath = myPicPath + ""
  10. End If
  11.  
  12. MsgBox myPicPath
  13. End With
  14.  
  15. myDocPath = Options.DefaultFilePath (wdDocumentsPath)
  16.  
  17. Dim myDocPath As String
  18. myDocPath = Dialogs(wdDialogToolsOptionsFileLocations).Setting
  19.  
  20. 'Add a "" at the end of the path, unless the setting is already followed by a "" -
  21. 'which it will be if the setting is set to a root folder
  22. If Not Right$(myDocPath, 1) = "" Then
  23. myDocPath = myDocPath + ""
  24. End If
  25.  
  26. MsgBox myDocPath
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement