How to pass an argument to a Microsoft Word macro?

I need to run a macro in Word with a parameter. I tried to declare a parameter for the module in the VB macro editor, but it does not work - the macro will be invisible in the macro list when I do this. I do not know how to do it and whether it can be done or not in MS Word 2007.

Please, help.

+3
source share
1 answer

You can run macros without parameters, because there is no default input method for entering parameter values. If you still want to use the parameters, you will need to create a macro without parameters and request the parameter values ​​yourself, either using the InputBox or using the form fields .

+1

Source: https://habr.com/ru/post/1742757/


All Articles