Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to Highlight with OLE

by dasgar (Deacon)
on Apr 04, 2014 at 17:59 UTC ( #1081176=note: print w/ replies, xml ) Need Help??


in reply to How to Highlight with OLE

I haven't tried to highlight anything in Word via Win32::OLE before, so this is just a guess. If I'm reading your code correctly, you're selecting some text, replacing the 'selection' and then trying highlight the 'selection'. I suspect that the issue is that after replacing the text, the 'selection' that is being acted upon is just the cursor placement at the end of the replacement text. If I'm correct, you'll need to select the replacement text before doing the highlighting.


Comment on Re: How to Highlight with OLE

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081176]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-09-22 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls