0

I would like to do the same as this which was written for Excel, but in Word

Excel's fullname property with OneDrive

I get Object issues using Philip Swannell's method. Much appreciated.

Timothy Rylatt
  • 7,221
  • 2
  • 10
  • 14
  • Can you show what you did try – Nathan_Sav Mar 01 '22 at 09:51
  • 2
    ... and elaborate what you mean with *Object issues* – FunThomas Mar 01 '22 at 10:10
  • Have you tried to simply change the paramter `ByRef wb As Document`? That should do the trick. The rest is naming and up to you to change (eg I guess it's not very clever to name a document variable `wb`) – FunThomas Mar 01 '22 at 10:16
  • 1
    Please include the code you are using. Do not depend on the volunteers here to try and reproduce it to troubleshoot. https://stackoverflow.com/help/how-to-ask – Charles Kenyon Mar 01 '22 at 13:54
  • Use [this solution](https://stackoverflow.com/a/73577057/12287457). After you copied the solution into a module, you can use `GetLocalPath(ThisDocument.FullName)` to get the local path for your document. – GWD Oct 22 '22 at 21:03

0 Answers0