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
Helmut Weber - 03 Mar 2005 10:39 GMT
Hi,
I don't think you can place
a checkbox on a messagebox.
You need a userform.
See:
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm
To store the information from the checkbox,
you could user a document-variable or a property.
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000