BUG: VBScript Macro Names Cannot Contain MBCS Characters

ID: Q186906

The information in this article applies to:

SYMPTOMS

When you attempt to record a macro with a name that contains a Multi-Byte Character Set (MBCS) character, an error appears.

RESOLUTION

Use only single-byte characters to name a macro.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

A Developer Studio macro is a Visual Basic Scripting Edition subroutine that contains VBScript commands and takes no parameters. The macro begins with a Sub statement, continues with VBScript commands that automate tasks in Developer Studio, and ends with an End Sub statement.

A macro needs a name before you record it or write it manually. When complete, the macro is stored in a text file known as a macro file (.dsm).

Steps to Reproduce Behavior

1. On the Tools menu, click Macro.

2. If a message box appears, click OK.

3. In the Macro File list, select a macro file. If no macro file exists,

   click Options, and then click New File.

4. In the Macro Name box, enter a new name for the macro. Use at least one
   MBCS character.

5. Click Record.

   Note: You cannot record a macro that already exists or record to a file
   that is read-only.

An error dialog appears indicating the macro name is invalid.

Additional query words:

Keywords          : kbnokeyword kbVC500bug kbVC600bug kbGrpDSTools 
Version           : WINNT:5.0 6.0
Platform          : winnt
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: November 19, 1998