3.1.3 ThisWorkbook Decompressed Module Stream Example
The following example illustrates the decompressed module stream for the "ThisWorkbook" module record.
Offset |
Size |
Structure |
Value |
---|---|---|---|
00000000 |
0163 |
array of bytes - TextDecompressedData |
Attribute VB_Name = "ThisWorkbook"\r\nAttribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"\r\nAttribute VB_GlobalNameSpace = False\r\nAttribute VB_Creatable = False\r\nAttribute VB_PredeclaredId = True\r\nAttribute VB_Exposed = True\r\nAttribute VB_TemplateDerived = False\r\nAttribute VB_Customizable = True\r\nSub helloworld()\r\nMsgBox "Hello, World"\r\nEnd Sub\r\n |
Figure 9: Decompressed module data
The preceding table illustrates the decompressed module data for the "ThisWorkbook" module.
TextDecompressedData: Specifies the attributes of the "ThisWorkbook" module and the code for the module, as described in [MS-VBAL]. The following text is formatted for readability.
-
Attribute VB_Name = "ThisWorkbook" Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = True Attribute VB_TemplateDerived = False Attribute VB_Customizable = True Sub helloworld() MsgBox "Hello, World" End Sub