Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Run the word macro by using Win32::OLE

by guha (Priest)
on Jan 21, 2005 at 16:51 UTC ( #424054=note: print w/replies, xml ) Need Help??

in reply to Run the word macro by using Win32::OLE

I don't really understand the connection between your example code and the question for running a macro. However the second part of your example should be written like:

my $range = $word->ActiveDocument->Content; $range->Find->Execute( { FindText => '', ReplaceWith => '<web></web>', Replace => $const->{'wdReplaceAll'}, } );

This code is however untested.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://424054]
erix clocks 12 years
[TStanley]: talexb I was actually in your area last week. I was working in Milton, Ontario at the hospital they are building there.
Eily hasn't entered monk school
[Eily]: there are some special array variables that are not interpolated in double strings, like @*, @/, @(, and @)
[Eily]: is this documented somwhere?
[Eily]: "@{/}" does interpolate @/ though

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-06-23 13:57 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (547 votes). Check out past polls.