Hello Bmorganh,
in VBA code yes you can initate a macro using a If statement. Jus
substitute the name of your macro for MyMacro in the example. The macr
can be run at anytime in VBA simply by placing the macro's name, and an
arguments required in your code.
Example:
If condition = True Then
Call MyMacro
End If
Sincerely,
Leith Ros