Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: WIn32::OLE Excel Bold a Word and Wrap Text

by cormanaz (Chaplain)
on Feb 18, 2011 at 16:34 UTC ( #888946=note: print w/ replies, xml ) Need Help??


in reply to WIn32::OLE Excel Bold a Word and Wrap Text

After about 45 min of hunting through Microsoft's byzantine docs system, I found the object reference for Excel 2010. That gives the answer to question 1: $Sheet->Range("A1")->{'WrapText'} = "True"; (I was close).

But it's no help on question 2. It must have something to do with the value property of the range object, but the docs give no indication of how you reference something within the value.


Comment on Re: WIn32::OLE Excel Bold a Word and Wrap Text
Download Code
Replies are listed 'Best First'.
Re^2: WIn32::OLE Excel Bold a Word and Wrap Text
by roboticus (Chancellor) on Feb 18, 2011 at 17:06 UTC

    cormanaz:

    I seem to recall that you need to select the word, and then apply the bold to the selection. Hopefully that'll give you a clue where to look in the documentation.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2015-07-29 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls