3.1.4 Sheet1 Decompressed Module Stream Example

The following example illustrates the decompressed module stream example for the "Sheet1" module record.

Offset

Size

Structure

Value

00000000

01D5

array of bytes - TextDecompressedData

Attribute VB_Name = "Sheet1"\r\nAttribute VB_Base = "0{00020820-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\nAttribute VB_HelpID = 2\r\nAttribute VB_Description = "Example Module Description"\r\nSub CompiliationExample()\r\n\r\n#If abc Then\r\n    MsgBox "abc=1"\r\n#End If\r\n   \r\nEnd Sub\r\n\r\n

Figure 10: Decompressed module data

TextDecompressedData:  Specifies the attributes of the "Sheet1" module and the code for the module as described in [MS-VBAL]. The following text is formatted for readability.

 Attribute VB_Name = "Sheet1"
 Attribute VB_Base = "0{00020820-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
 Attribute VB_HelpID = 2
 Attribute VB_Description = "Example Module Description"
 Sub CompiliationExample()
  
 #If abc Then
     MsgBox "abc=1"
 #End If
    
 End Sub