Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM run macro

Status
Not open for further replies.

hyrogen

Programmer
Jul 10, 2003
60
GB
Hi there,

Im currently using the COM from php, and I really need help with two things.

The first is running macros:

$word->Run("MyProject.NewMacros.Macro17"); //which gives an error of cannot run the specified macro?

The second is:

$word->Selection->InsertBreak("7"); //which is trying to insert a line break;

I cannot not get either of these two seemingly simple functions to work. I would be extremely greatful if someone could give any help...

Many thanks,
Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top