J
Jacques Cooper
Hello,
When the user clicks our toolbar button, how
can we determine if a document or spreadsheet
is empty? We don't want to process an empty
document.
We tried this, but it did not solve the problem:
If oApp.ActiveDocument = " " Then
nResponse = MsgBox("The Word document is Empty", _
vbMsgBoxSetForeground, PRODUCT_NAME)
Exit Sub
End If
TIA,
Jacques
When the user clicks our toolbar button, how
can we determine if a document or spreadsheet
is empty? We don't want to process an empty
document.
We tried this, but it did not solve the problem:
If oApp.ActiveDocument = " " Then
nResponse = MsgBox("The Word document is Empty", _
vbMsgBoxSetForeground, PRODUCT_NAME)
Exit Sub
End If
TIA,
Jacques