Writing Word Macros by Steven Roman This page lists the errors corrected in the 10/99 printing: Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification This book received a title change during this printing. It was previously titled "Learning Word Programming"; it is now titled "Writing Word Macros." <52> The first line of code used to read: "ActiveDocument.Paragraphs(1).Alignment =_ wdAlignParagraphCenter" It now reads: "ActiveDocument.Paragraphs(1).Alignment = _ wdAlignParagraphCenter" There should be a space between "=" and "_". {57} First full paragraph, line 2 used to read: "which is a waste of 12 bytes" Now reads: "which is a waste of 14 bytes" {72} Table 5-5, third to last line used to read: "<=" Now reads: "<= or =<" {72} Table 5-5, second to last line used to read: ">=" Now reads: ">= or =>" {72} Table 5-5, last line used to read: "<>" Now reads: "<> or ><" <90> The second code fragment in "The Instr function" section used to read: 'MsgBox Instr( , "Donna Smith", "Smith")' Now reads: 'MsgBox Instr( 1, "Donna Smith", "Smith")' (180) "The Fields Collection," first paragraph, third line used to read: "in the document" Now reads: "in the main story document" (187) Second to last paragraph, third line used to read: "Chapter 8, Control Statements" Now reads: 'the "Object Variables" section in Chapter 9"' (196) The B-head "Example: Printing Document Headings" is now an A-head. (199) The B-head "Example: Finding Used Styles" is now an A-head. {217} The second set of code used to read: "To illustrate, the code: Dim rng As Range Set rng = ActiveDocument.Paragraphs(1) ShowRange rng, 3, True" Now reads: "To illustrate, the code: Dim rng As Range Set rng = ActiveDocument.Paragraphs(1).Range DebugShowRange rng, 3, True" (224) Fourth paragraph ("In other words-"), line 1 used to read: "text and formatting is" Now reads: "text and formatting are" {296} "Creating a Key Binding", first code fragment used to read: "KeyBinding.Add" Now reads: "KeyBindings.Add" {309} Example 19-1, 19th line ("Set tbl = ActiveDocument-") used to read: "NumRows:=1 _" Now reads: "NumRows:=1, _" (353) Figure B-5 now used to read: "CRP CRP stands for cardio-pulmonary resuscitation." Now reads: "CPR CPR stands for cardio-pulmonary resuscitation." (353) Figure B-6 used to read: "ATTENTION! CRP CRP stands for cardio-pulmonary resuscitation." Now reads: "ATTENTION! CPR CPR stands for cardio-pulmonary resuscitation." (376) Second paragraph, line 2 used to read: "with a C are comments" Now reads: "with a C in column one are comments"