Question How to pass parameters to a MS Word Macro?

Hi there!

Anyoone knows how to pass parameter s to a MS Word Macro?

If I use the following code it works.
Code:
        c-macro = "cargaCodigoQR".
        c-chWordApplication:RUN(c-macro).

But if I use the following code it fails:
Code:
p-ruta-qr-code = "C:\temp\image.jpg".
c-chWordApplication:RUN("cargaCodigoQR",p-ruta-qr-code).

Anyone has an example working? In MS Excel it works great!

Thanks.
 

Rob Fitzpatrick

ProgressTalk.com Sponsor
Using 10.2B07 and Word 2010 I have passed a parameter to a macro in the RUN method, and it works.

Code:
v-data = "C:\test\Mail merge\data.txt"
wdApp:RUN( "MergeExec", v-data ).  /* VBA macro */

Sorry, I'm not sure what your issue is.
 
Top