Export (0) Print
Expand All
Expand Minimize

2.4.51 CodeName

Office

The CodeName record specifies the name of a workbook object, a sheet (1) object in the VBA project located in this file. If this record is in the Globals Substream, the name is for the workbook object. If this record is in a Chart Sheet Substream, the name is for the chart sheet object representing the sheet (1). If this record is in a Macro Sheet Substream, the name is for the macro sheet object representing the sheet (1). If this record is in a Dialog Sheet Substream, the name is for the dialog sheet object representing the sheet (1). If this record is in a Worksheet Substream, the name is for the worksheet object representing the sheet (1).


0

1

2

3

4

5

6

7

8

9
1
0

1

2

3

4

5

6

7

8

9
2
0

1

2

3

4

5

6

7

8

9
3
0

1

codeName (variable)

...

codeName (variable): An XLUnicodeString structure that specifies the name used to identify the workbook object or sheet (1) object in the VBA project embedded in this file. The value of codename.cch MUST be less than or equal to 31.

If this string is not empty, it MUST contain only the characters that can be mapped from Unicode to a multiple-byte ANSI character set specified by the system locale. If the system locale is Chinese, Japanese, or Korean, then the full-width characters in the resulting ANSI string are further mapped to corresponding half-width characters where applicable.

In the resulting ANSI string, the first character MUST be a letter, a single-byte character with a code greater than 0x7F, or multiple-byte character. The subsequent characters in the resulting ANSI string MUST be a digit, an underscore, a single-byte character with a code greater that 0x7F, or a multiple-byte character.

If the system locale is Japanese, the original Unicode string MUST NOT contain a character with a code equal to 0xFFE3.

Show:
© 2014 Microsoft