开发者

How to pass argument to a Microsoft Word macro?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜