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 pos开发者_如何学Goible to do so or not in MS Word 2007.
Please help.
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.
精彩评论