Use this activity to define macro blocks. These blocks will then be connected to the macros, as described in the Connect Macro Blocks activity. The following table shows a couple of examples for macros.
Example 1- WORD_INIT | Example 2 - WORD_UPDATE |
'Setup some
variables' Dim sMsg sMsg = "Congratulations on your first document macro!" |
Public Sub View_Word() MsgBox sMsg End Sub |
N/A
These macro blocks are the codes for the macro.
Macro Basic
Macro Basic/Document Macro Blocks