By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,400 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,400 IT Pros & Developers. It's quick & easy.

run macro from java script

P: n/a
Hi,

I am not familur with java script i am at beginning and I have wrote a
java script that open word document but I didn't success to run a macro
that exist in the Word document.

var wordDoc=new ActiveXObject('Word.Application');
wordDoc.Application.Visible=true;
FileName="C:\\SID.doc";
wordDoc.documents.open(FileName);

Which method should i use here to run the macro ???

I have tried wordDoc.Application.Run "MacroName";
but then when i run it i get an error that == ; was expected

Please Advice.
Regards,
Zvia.

P.S. I will glad to have a refernce to good tutorial .

Jul 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Well, I have found it . 10x.

It's should be wordDoc.Run ("MacroName");

Jul 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.