Errata

Writing Word Macros

Errata for Writing Word Macros

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 70
Example 5-2

If the user responds "No" to the query, the font is changed anyway on the second and subsequent calls.

Thomas Cloud  Dec 28, 2011 
Printed Page 80
Example 6-4

The program Example 6-4 omits the variable declaration, and causes a compile error. It needs a "Dim x As Integer" statement.

Anonymous   
Printed Page 80
Example 6-4

I could not get this code to work until I put :
Dim x As Integer
just before the
x = 5
statement
Regards, Ian

Ian Arnold  Feb 06, 2012 
Printed Page 99
second-to-last code example on page

The third line should read "Do While para.Range.Characters.Count > 1". (The ">
1" is omitted in the book.)

Anonymous   
Printed Page 170
bottom

The WdSaveFormat enum does not include Word 2000's wdFormatHTML.

Also, the MSDN web page
http://support.microsoft.com/support/kb/articles/Q224/0/66.ASP
seems to suggest that the numeric value of each enum constant may vary from
machine to machine.

Anonymous   
Printed Page 187
Top of page

You have omitted the TwoPagesOnOne Property in the list for the PageSetup Object.

Anonymous   
Printed Page 187
Second Code Sample

This piece of code:

With ActiveDocument.pagegesetup
.LeftMargin = InchesToPoints(1)
.RightMargin = InchesToPoints(1)
.SetAsTemplateDefault
End With

Does not update the template with the page margins.

Anonymous   
Printed Page 246
second paragraph

In the second paragraph, the last two words should read "Chapter 12", not "Chapter 11".

Anonymous   
Printed Page 322
section on creating a macro for the fax cover sheet

The code in the section on creating a macro for the fax cover sheet is wrong, and as a new learner, I can't determine the problem. I get error code
"5941 The requested member of the collection does not exist."

I thought it might be me, but when I downloaded your examples of the three
macros from the web site and opened the fax cover sheet and tried to run the
code and design, I got the same error.

Anonymous   
Printed Page 377
Appendix D, COBOL section Code

A couple of minor typos in the COBOL section.

The first two lines in Working Storage read:

01 FIRST-NUMBERPIC IS 99.
01 SECOND-NUMBERPIC IS 99.

They should read:

01 FIRST-NUMBER PIC IS 99.
01 SECOND-NUMBER PIC IS 99.

Also, there is a missing period at the end of the COMPUTE line.

I know that last one is a minor point, and all compilers that I am familiar with would assume one is there, but still, if you want correct code, it should be there.

I do take exception to the statement that "with the inevitable consequence that conciseness and readability is also avoided."

Anonymous