Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Sub AddDocumentVariable()
  2. ActiveDocument.Variables.Add Name:="Age", Value:=12
  3. End Sub
  4. Sub UseDocumentVariable()
  5. Dim intAge As Integer
  6. intAge = ActiveDocument.Variables("Age").Value
  7. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement