BUG: Loading VBA Projects with DBCS Hyphens May Cause VBA to Crash

ID: Q244492


The information in this article applies to:
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK), versions 5.0, 6.0, 6.1


SYMPTOMS

If a user saves a Visual Basic for Applications (VBA) project with the DBCS version of VBA (for example, Japanese), and then loads the VBA project with an ANSI version of VBA (for example, English), VBA can crash. This crash occurs if the name of the saved project contains a DBCS hyphen character (0x815B).


CAUSE

This problem is caused because part of the DBCS hyphen character (0x815B) translates to a "[" character in ANSI (0x5B). The "[" character has special meaning in VBA project names, and therefore can cause a crash.


RESOLUTION

To resolve this problem, open the project in a DBCS version of VBA, and remove any hyphens from the project name.


STATUS

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

Additional query words: VBASDK

Keywords : kbSDKVBA kbGrpDSO kbDSupport
Version : winnt:5.0,6.0,6.1
Platform : winnt
Issue type : kbbug


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.