dLSoft Application Note 02981 Barcode Macros for Office give errors in Word 97 Problem When the Barcode Macros for Office are used with Word 97, two specific problems have been reported: 1. Selecting text in a header or footer then calling a macro generates a "wrong length" error. 2. Slecting text in a text box and calling a macro produces a barcode of the wrong size. Explanation The first of these errors arises becuase the macros for Word are written in Word Basic and get translated by Word 97 when imported from the template. Unfortunately Word 97 does not appear to pick up selected text correctly from headers and footers when using the translated Basic. The modification below will oversome this problem. The second problem arises because the Text Boxes of Word 97 do not seem to like having a metafile picture as the first item within them. Resolution 1. The dBarcode Macro may be edited as follows: Choose the Visual Basic Editor from the Tools menu, Macro item. From the template open the dBarcode macro. Change the line St$=WordBasic.[GetText$](WordBasic.GetSelStartPos(), WordBasic.GetSelEndPos()) to St$=Selection.Text From the File menu choose SAVE ..... The barcode macros will now function in headers and footers. 2. To generate barcode images within text boxes (including within headers and footers), ensure that at least on character (which may be a space) appears before the text which will be selected to create the barcode image. Note When updated macros are available these will be announced in the users newsletter. DL Technology 02/98