question

LauroColasanti-5787 avatar image
0 Votes"
LauroColasanti-5787 asked emizhang-msft edited

run-time 2737 when connecting OLE Object (Word file) who is inside OneDrive Folder

Hi,
I'm developing a solution based on Word and Access.
In an Access mask, the user click a command and a Word file is automacilly created and inserted in a BoundObjectFrame via the following command:

With OleDoc
.Class = "Word.Document"
.OLETypeAllowed = acOLELinked
.SourceDoc = strFullNameFile
.Action = acOLECreateLink
End With

Everything is fine if the file named strFullNameFile is in a normal folder on my computer. But if is in a subfolder inside my OneDrive folder in my computer, I get a
Run-time error 2737
Impossible to find file with OLE object linked...

Do you have any idea why?
Thanks, Lauro

office-vba-devoffice-onedrive-client-itprooffice-word-itprooffice-access-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers