Reputation: 35434
I need to run a macro in Word with a parameter. I've tried to declare a parameter for the module in the VB Macro Editor but it doesn't work - the macro will be invisible in the macro list when I do so. I don't know how to do this and whether it is posible to do so or not in MS Word 2007.
Please help.
Upvotes: 3
Views: 4391
Reputation: 10074
You can only run parameterless macros because there is no default input method to provide the parameter values. If you still want to use parameters, you will have to create a parameterless macro and request the parameter values yourself, either by using an InputBox or using form fields.
Upvotes: 1