开发者

VB Script to find the existance of a macro in microsoft word document

I want to write a VB Script which will check in a word file about the macro name we pass from vb script whether it exists or not. It return the result to VB script and i want to call this VB Script from the开发者_运维知识库 JAVA and whatever the result is it should appear in JAVA. tell me how to call the VBScript from java and how to pass the name of the macro and path of the ".dot" stylesheet from java to vb script.


Your title doesn't really match the rest of the question or the flags, so I migt be answering the wrong thing.

This page contains information about how to execute VBScript from Java. And then if you send the macro name etc as command line parameters to the script you should be able to pick those up inside the script using Wscript.Arguments. Here's a blog post that shows how to do that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜