Skip to Content
Special Edition Using® Microsoft® Office 2003
book

Special Edition Using® Microsoft® Office 2003

by Ed Bott, Woody Leonhard
September 2003
Beginner to intermediate content levelBeginner to intermediate
1368 pages
56h 14m
English
Que
Content preview from Special Edition Using® Microsoft® Office 2003
1176
Chapter 43 Building Custom Applications with VBA
Word uses a second method, .Display, that enables the user to make a selection from a dia-
log box but doesn’t actually complete the normal operation of the dialog box. For example,
you can use the
.Display method with the Open dialog box to retrieve a filename; when the
user selects a file and clicks Open, your program can use the specified filename without
opening the file itself.
With Dialogs(wdDialogFileOpen)
.Name = “*.htm”
.Display
MsgBox “You chose File “ & .Name
End With
43
NOTE
The
With/End With command pair saves you a lot of typing. When you add a parame-
ter after the
With command, VBA tacks ...
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

Special Edition Using Microsoft® Office XP

Special Edition Using Microsoft® Office XP

Ed Bott, Woody Leonhard
Special Edition Using Microsoft® PowerPoint® 2002

Special Edition Using Microsoft® PowerPoint® 2002

Patrice-Anne Rutledge, Tom Mucciolo

Publisher Resources

ISBN: 0789729555Purchase Link