Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

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


    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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888946]
[perldigious]: Tanktalus: Ha, understandable, that does make it harder when you don't want to move. I assume you are looking at remote work from home jobs too?
[Tanktalus]: yeah, I'm looking at a lot of remote work - I've been working from home since 2002, so I know how to do the work from remote, I just need a new employer ;)
[Lady_Aleena]: Discipulus, I wouldn't know how to get a script to do what the greps do in one line.
[perldigious]: Even working for a large software engineering contractor that's willing to do remote could be an option. The fortune 500 company at $job-- I worked for had quite a lot of that work to hire out to large contractors.
[perldigious]: The pay and benifits leave a lot to be desired though, or so I've heard...
[Lady_Aleena]: Discipulus, grep doesn't have an option to go recursively through a directory as far as I know.
[Your Mother]: I work remotely and my pay and benefits are quite nice. :P
[choroba]: Lady_Aleena Perl's grep is not related to directories
[Your Mother]: It does recurse.
[Lady_Aleena]: choroba, I know.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-05-23 19:29 GMT
Find Nodes?
    Voting Booth?