S
slickdock
I would like my vb code to Call the macro referenced in the field in a
record:
My vb code starts in MS Access. It saves a record as a Word merge data
file and merges it with a Word merge form file. Once the merge is
complete, I would like the code to make this determination:
There will always be a field in the merge data file called
[OptionalChainedMacroName]. It may or may not be blank. If it is not
blank, I would like to call a macro after finishing the merge. The
macro to be called is equal to the contents of the
[OptionalChainedMacroName].
In this example, lets say the contents of the field
[OptionalChainedMacroName] is "Macro_For_Form_A."
Sub Macro_For_Form_A() exists in the normal.dot.
If the field in the merge data file called [OptionalChainedMacroName]
is not blank, call Macro "Macro_For_Form_A" after finishing the merge.
TIA.
record:
My vb code starts in MS Access. It saves a record as a Word merge data
file and merges it with a Word merge form file. Once the merge is
complete, I would like the code to make this determination:
There will always be a field in the merge data file called
[OptionalChainedMacroName]. It may or may not be blank. If it is not
blank, I would like to call a macro after finishing the merge. The
macro to be called is equal to the contents of the
[OptionalChainedMacroName].
In this example, lets say the contents of the field
[OptionalChainedMacroName] is "Macro_For_Form_A."
Sub Macro_For_Form_A() exists in the normal.dot.
If the field in the merge data file called [OptionalChainedMacroName]
is not blank, call Macro "Macro_For_Form_A" after finishing the merge.
TIA.