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
1199
Controlling Other Applications
‘ Then boost the array index by one
i = i + 1
Next
If you combine this technique for transferring a collection to an array with the sort method
and the
PrintFontNames routine shown earlier in Listing 44.8, and put the “With Selection”
command into service, you’ll come up with the macro called PrintSortedFontNames, shown
in Listing 44.10.
Listing 44.10 PrintSortedFontNamesListing
Dim i As Integer
Dim varFont As Variant
Dim strFonts() As String
Dim intPoints As Integer
Dim strTestString As String
ReDim strFonts(FontNames.Count)
intPoints = 11
intPoints = InputBox(“Print list at what point size?”, “PrintFontNames”,
intPoints) ...
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