Category : Windows 3.X Files
Archive   : WHAG.ZIP
Filename : SYSBODY1.DOT
ß#
Õ# é# c L$ P$ P$ P$ P$ P$ P$ P$ P$ X$ l$ 9 ¥$ ¥$ ¥$ ¥$ ¥$ 4 Ù$ - ¥$ µ# ¥$ ¥$
P N UpdateList macro (TES.DOT): automatically updates bulleted and numbered lists+Q ) written 9/12/90 michaelm Microsoft Corp.>} < revised 8/12/91 michaelm make NewList test case-insensitive ¼ ¾ MAIN È "Ê
startNumList$ seq ln1 \r 1ë
inNumList$ seq ln1 " false true false %B' = Save the current value of field codes view (-1 means you can/h * see field codes; 0 means they're hidden):
fieldCodeSave h »I½ D If field code mode was turned of, turn it on (we need to do this soJ E we can check for actual number fields later on in the "ln1" search): NP
fieldCodeSave
l h J E Execute the following FOR...NEXT loop twice: once for "lb1" and onceÔ for "lb2": ãå #counter $ ü-þ ' Move to the beginning of the document: *, G ??A 9 Make the style name we're searching for by concatenatingC = the value of "counter" (1 or 2) with the string "^ylb", thenAÁ ; do the first search for the style name (note: use option 1? 9 with "Direction" so macro won't automatically restart at:? 4 beginning of doc -- which is what would happen with/x ) option 2, thus causing an endless loop): ¦9¨ § lbnkcounter Z Ú Ì óõ 4 - If we found at least one bulleted list, then9E 2 put the ALT+N keystroke combo in the "buffer" so<} 5 the dialog box about starting the search over at the9¸ 2 beginning will just automatically get blown away: ð ò /%N E ? If we found one, start bouncing around inside the WHILE...WENDT loop below: e
g ! ; 4 Found an lb1 or lb2 style, so check to see if there)¾ " was already a bullet + tab there: æ"è lr
! No bullet -- put one in: 5 7 9 G &