D
dozingquinn
Hello,
I'm using the following code to open a word document saved on a network
drive
Sub label105_click
Set Word = CreateObject("Word.Application")
Word.Visible = TRUE
Word.Documents.open("G:\whatever.dot")
End Sub
I've been assured that almost everyone in the company has access to the
G:\ - however I'd like to make a message box appear if Word can't
access the document - something like "Please contact IT to map your
G:\"
Can I just alter the code so it states....
Sub label105_click
Set Word = CreateObject("Word.Application")
Word.Visible = TRUE
Word.Documents.open("G:\whatever.dot")
If Word.Documents.open Is Nothing Then
MsgBox "Please contact IT to map your G:\"
Else
End Sub
I'm using the following code to open a word document saved on a network
drive
Sub label105_click
Set Word = CreateObject("Word.Application")
Word.Visible = TRUE
Word.Documents.open("G:\whatever.dot")
End Sub
I've been assured that almost everyone in the company has access to the
G:\ - however I'd like to make a message box appear if Word can't
access the document - something like "Please contact IT to map your
G:\"
Can I just alter the code so it states....
Sub label105_click
Set Word = CreateObject("Word.Application")
Word.Visible = TRUE
Word.Documents.open("G:\whatever.dot")
If Word.Documents.open Is Nothing Then
MsgBox "Please contact IT to map your G:\"
Else
End Sub