Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

MsgBox with checkbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senad Isanovic - 03 Mar 2005 09:52 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.