WD98: Cursor Does Not Display in Correct Position in VBA Editor

ID: Q177889

The information in this article applies to:

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.

REFERENCES

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

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications

Additional query words: OFF98 vba vbe vb cursor
Keywords          : OffVBA kbwordvba macword98 
Version           : MACINTOSH:98
Platform          : MACINTOSH
Issue type        : kbbug

Last Reviewed: February 14, 1998