Skip to Main Content
Word 2007 Document Automation with VBA and VSTO
book

Word 2007 Document Automation with VBA and VSTO

by Scott Driza
March 2009
Intermediate to advanced content levelIntermediate to advanced
617 pages
17h 24m
English
Jones & Bartlett Learning
Content preview from Word 2007 Document Automation with VBA and VSTO
The code in Figure 5-7 sets up an array that can be repre-
sented by the following table:
Dog’s Name Dog Type
Shani Ridgeback
Peanut Rottweiler
Sasha Doberman
Displaying Information to the User
One of the best ways to interact with users (as well as visually
see what your code is doing without stepping through the
code) is through message boxes and input boxes. Message
boxes are a great way to display errors, tips, and other
information.
Message Boxes
The MsgBox function displays a message in the form of a dia-
log box, waits for the user to click a button, and returns an
integer indicating which button the user clicked. Following is
the syntax for the MsgBox ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Word 2003 Document Automation with VBA, XML, XSLT, and Smart Documents

Word 2003 Document Automation with VBA, XML, XSLT, and Smart Documents

Scott Driza

Publisher Resources

ISBN: 9781598220476