Answers for "vba ms word open read only"

VBA
0

vba word open document read only

Sub OpenWord()
Dim WordApp As Object
Dim WordDoc As Object

Set WordApp = CreateObject("Word.Application")
Set WordDoc = WordApp.Documents.Open(Filename:="C:testtest.doc", ReadOnly:=True)
WordApp.Visible = True

'do your stuff

Set WordDoc = Nothing
Set WordApp = Nothing
End Sub
Posted by: Guest on January-30-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language