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

Last reviewed: February 11, 1998
Article ID: Q177889
The information in this article applies to:
  • Microsoft Word 98 Macintosh Edition

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
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.