Brown Inc.

 

Home page for Brown Inc.

About Brown Inc.
Getting in touch
Client list

Now available!
HTML Indexer

Other free downloads
  Graphics in WinHelp
  Expandable tabs in WinHelp
  WinHelp without menus
  Word macros
  Hypertext at a glance
  Becoming a contractor

About the principal

Site index

Macros for Word Users

This document contains many of the macros we've developed over the years to make life with Word a little easier. They're written in WordBasic, but we still use many of them in Word 97 and 2000. (We let Word translate them to VBA, but you might prefer to examine the logic and rewrite them in VBA yourself--no doubt there are other or even better ways to do what they do.)

Some of these macros are useful only to WinHelp developers--hey, that's what we were doing at the time--others address more general needs.

Download the file

The download is a zipped text file containing the following macros:

CompareStyleCount
Compares the number of custom styles in the active document to the number of custom styles in the associated template
StyleList
Lists PARAGRAPH styles used in the active document
RemoveUnusedStyles
Removes unused styles from the active document
MergeFromTemplate
Merges paragraph styles from the active document's template
FontList
Lists fonts used in the active document
MergeIndex
(WinHelp development with RoboHelp)
Merge RH's "letter" paragraphs and inserted topic-jump paragraphs
GoToTopicNumber
(WinHelp development)
Jumps to the specified topic number, by page break
PrintOutline
Prints an outline (heading 1 through heading 5) of the current file
PrintAllNoBreaks
(WinHelp development)
Prints the current file without manual (hard-coded) page breaks
HiddenText
Toggles display of hidden text
PicturePlaceholders
Toggles display of pictures and picture placeholders
FieldCodes
Toggles display of field codes
TextBoundaries
Toggles display of text boundaries in page layout view
KeepTogether
Prevents a soft page break within the selected paragraph
KeepWithNext
Prevents a soft page break after the selected paragraph
PageBreakBefore
Toggles forcing the selected paragraph to the top of the next page
ParagraphJumps
(WinHelp development)
Makes each paragraph's text into a WinHelp jump
HyphensToUnderscores
(WinHelp development)
In selection, converts HIDDEN hyphens to underscores
SpacesToUnderscores
(WinHelp development)
In selection, converts HIDDEN spaces to underscores
InsertEmptyFootnoteRefs
(WinHelp development)
Inserts footnote references for topic ID (#), topic title ($), keywords (K), and either window class (>) or browse sequence (+)
MakeFootnoteMarkerAt
(WinHelp development)
Changes single selected footnote marker to an "@" symbol, effectively "commenting it out"
CharacterColor
Changes the color of the selected text
SmallCapsForHelp
(WinHelp development)
In selection, converts lowercase letters to 7-point "small fonts"
ConfirmConversions
Makes it easier to open RTF files as text
Factorial
Demonstrates that Word Basic macros are recursive

Notes:

  • These macros are made available "as is" with no guarantee of anything except our good intentions. Be sure to save your work before using any unfamiliar tool!
  • Being fully occupied with other duties, we can't offer any kind of support in the use of these macros beyond the descriptions on this page and the comments in the file you download.
  • Check your headers and footers after using the RemoveUnusedStyles macro or any other that affects the style list. Since the automatic conversion to VBA, we've seen headers and footers revert to Normal style seemingly at will. At worst, you may have to go through and reapply the Header or Footer style as a final pass. (We've seen this only in Word 2000, and not consistently.)
  • These macros deal only with paragraph styles, not character styles. (WordBasic just wouldn't cooperate with us on that point; VBA may be better about it.)
 


Copyright © 1998, 2003 Brown Inc.

-------------------------------------------------- Paid Advertisement Links Below --------------------------------------------------
Checks By Phone | Verify a Check | Reorder Checks | Routing Number | Check Verification
| BIN Database |
| Recycle Food Waste Boston | Check By Phone Software Reviews | Short Term Furnished Allston | SWIFT Code Database |