WD: InsertSymbol Result Not Translated Between Mac and ANSI

ID: Q122432

The information in this article applies to:

SYMPTOMS

If you run a WordBasic macro that inserts a character, a different character may be inserted when the macro is run on the Macintosh than when it is run on Windows.

CAUSE

Word currently does not support conversion of Macintosh CharNum values to equivalent ANSI values, and vice versa.

When a WordBasic macro that includes the InsertSymbol command is exchanged between Word 6.x or later for the Macintosh and Word 6.x or later for Windows, the numeric value of the CharNum or CharacterNumber command is not translated from its Macintosh character set value to its ANSI equivalent, and vice versa.

WORKAROUND

Edit the macro on the target platform, replacing the character value with the value that gives correct results.

In the following example replace the number 203 with 192, (ANSI 192, Capital A Grave, is the equivalent of Macintosh character 203.)

The following macro instructions insert the Capital A Grave character:

   ' Word for Windows instruction
   InsertSymbol .Font = "(normal text)", .CharNum = "192"

   ' Macintosh Word instruction
   InsertSymbol .Font = "(normal text)", .CharNum = "203"

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

The following Word 6.0 for the Macintosh sample macro instruction, which inserts the character Capital A Grave (Macintosh character 203) in a Word 6.0 for the Macintosh document, is transferred unchanged to Word 6.0 for Windows:

  InsertSymbol .Font = "(normal text)", .CharNum = "203"

If the above instruction is run in Word 6.x for Windows, a CE Diaeresis (ANSI 203) is inserted instead of the intended Capital A Grave.

Additional query words: conversion converted converts transfer transfers translation translate charnum symbol

Keywords          : kbinterop kbconversion kbmacroexample winword macword word6 word7 word95 kbFont 
Version           : MACINTOSH:6.0,6.0.1,6.0.1a; WINDOWS:6.0,6.0a,6.0c,7.0,7.0a; winnt:6.0
Platform          : MACINTOSH WINDOWS winnt
Issue type        : kbprb kbinfo

Last Reviewed: February 14, 1999