MsgBox with checkbox

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top