W10 O365
Hi. I'm trying to figure out merging cell values into bookmarks of a Word doc. Watching a few videos and attempting to replicate, but the referenced Word doc continues to open with a prompt to either be Read Only, Save a copy, Get notified when.... The prompt also indicates I'm the one locking it. I don't see the video peeps having this issue, so I'm puzzled. Maybe someone has an answer for me...
Appreciate any help here. TIA
Lewis
Hi. I'm trying to figure out merging cell values into bookmarks of a Word doc. Watching a few videos and attempting to replicate, but the referenced Word doc continues to open with a prompt to either be Read Only, Save a copy, Get notified when.... The prompt also indicates I'm the one locking it. I don't see the video peeps having this issue, so I'm puzzled. Maybe someone has an answer for me...
VBA Code:
'Just a snippet
Dim WordApp As Word.Application
Dim WordDoc As Word.Document
Dim DocLoc As String
Set WordApp = CreateObject("Word.Application")
Set WordDoc = WordApp.Documents.Add
DocLoc = "C:\Users\Test\Desktop\ExcelStuff\WordMerge\Test1.docx"
Set WordDoc = WordApp.Documents.Open(DocLoc, , ReadOnly:=False)
Appreciate any help here. TIA
Lewis