Yes. Store Variables in the Document Object
|
Yes, the Word Application let's you store variables in word. Look it up in VBA the help is pretty robust. Here's the basic idea
Word has document variables that are stored within the document object. Here are the steps.
1) Declare the Variable in your subroutine.
2) Add the variable and value of the variable to the document.
(ActiveDocument.Variables.Add "VariableName", VALUE)
(i.e. ActiveDocument.Variables.Add "wVarLessonName", "Claims Clearance")
3) Return the Value of the Document Variable
Result= ActiveDocument.Variables("VariableName")
Msgbox Result
|
__________________
cya! m.c
.:| Visualize Whirled Peas |:.
|