Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42312

Calling Word to run VBA with parameters

$
0
0
I am producing an application within PeopleSoft that I need to make a call to windows and initiate a word document that will run a macro upon startup. I can do this piece, no problem the trick is, I want to pass in parameters similar to:

word.exe MakeDoc.docx "doc0001" "sysadm" "password"

where the last three terms are parameters that the VBA will utilize. Does anyone know how to take these parms into the VBA macro?

Thanks.
Jeff

Viewing all articles
Browse latest Browse all 42312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>