Thisworkbook.path geeft verkeerde inhoud

Copper Contributor
Ik gebruik OneDrive, maar ik heb automatisch opslaan standaard uitgeschakeld en ik heb de Files On-Demand optie uitgeschakeld.
Toch krijg ik in macro's als ik de waarde van ThisWorkbook.Path opvraag als resultaat: een https  link met  "//d.docs.live.net/xxxxxxxx"terwijl het goede antwoord "C:/OneDrive/" is.
Hoe kan ik dit veranderen?
2 Replies

Thisworkbook.path gives wrong content

The Microsoft helpdesk advised me to just ask my question in this community in Dutch. But because that gives no response, I am now trying to ask the same question in Google English.

 

I'm using OneDrive, but I have turned off auto-save by default and I have the Files On-Demand option turned off.
Still, in macros, when I request the value of ThisWorkbook.Path, I get a https link with "//d.docs.live.net/xxxxxxxx" while the correct answer is "C: / OneDrive /".
How can I change this?

 
 

@AnneVddl 

Afraid not, for files synced with OneDrive Excel returns the path on the latest. The path returned is the same as in File->Info.

To change behavior if only stop syncing OneDrive.