Microsoft KB Archive/244492

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

Article ID: 244492

Article Last Modified on 11/19/1999

-

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.

Additional query words: VBASDK

Keywords: kbbug kbpending KB244492

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.