WD98: Cursor Does Not Display in Correct Position in VBA Editor (177889)



The information in this article applies to:

  • Microsoft Word 98 Macintosh Edition

This article was previously published under Q177889

SYMPTOMS

The insertion point exhibits erratic behavior while in the Visual Basic Editor. For example, if the insertion point is at the beginning of the following statement:

MsgBox "Is the Cursor at the end of this line?"

and you press the End key, the insertion point moves between the letters "n" and "e" of "line."

CAUSE

The Editor Format font is set to Courier New, and the font size is equal to or greater than 16 points.

WORKAROUND

To work around this problem, use a font other than Courier New or decrease the font size to less than 16 points.

To change the font used by the Visual Basic Editor, follow these steps:

  1. In the Visual Basic Editor, click Preferences on the Tools menu.
  2. Click the Editor Format tab.
  3. In the Font list, select a font other than Courier New.

    -or-

    In the Size box, type or select a font size that is less than 16 points.
  4. Click OK.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

163435 VBA: Programming Resources for Visual Basic for Applications


Modification Type:MajorLast Reviewed:10/4/2002
Keywords:kbbug KB177889