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



The information in this article applies to:

  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 5.0
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 6.0
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 6.1

This article was previously published under Q244492

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 that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:11/19/1999
Keywords:kbbug KB244492