gruntingmonkey
Active Member
- Joined
- Mar 6, 2008
- Messages
- 434
- Office Version
- 365
- Platform
- Windows
Hi, I can't figure out how to open the below file while selecting Read only when the password entry box comes up.
I have tried:
Application.DisplayAlerts = False
and
Set wdDoc = wdApp.Documents.Add(ConTemp, readonly:=true)
but neither of these have worked. I'm not sure what to try next! Has anyone got any ideas?
VBA Code:
If Dir(ConTemp) <> "" Then
With wdApp
.DisplayAlerts = wdAlertsNone
.Visible = True
Set wdDoc = wdApp.Documents.Add(ConTemp)
I have tried:
Application.DisplayAlerts = False
and
Set wdDoc = wdApp.Documents.Add(ConTemp, readonly:=true)
but neither of these have worked. I'm not sure what to try next! Has anyone got any ideas?