S
Senad Isanovic
When closing the document (AutoClose) I have a routine that is checking if
the account number is missing in the document and the I display the msgbox
"Please note that an account number is missing". After that the document
closes. Now I would like to have a checkbox in that msgbox "Please do not
show this message again". That will be a setting for all documents created
from that template. How can this be fixed?
Sub AutoClose()
If ActiveDocument.Variables("bDnr").value = "" Then
MsgBox "Please note that an account number is missing.",
vbInformation, "Diarienummer"
End If
End Sub
the account number is missing in the document and the I display the msgbox
"Please note that an account number is missing". After that the document
closes. Now I would like to have a checkbox in that msgbox "Please do not
show this message again". That will be a setting for all documents created
from that template. How can this be fixed?
Sub AutoClose()
If ActiveDocument.Variables("bDnr").value = "" Then
MsgBox "Please note that an account number is missing.",
vbInformation, "Diarienummer"
End If
End Sub