Change dotted line border around the Text Box to a solid line border

G

Gilroy

How can I change the border of a Text Box to a solid line
border? I can get to the Text Box shape like this:

Word.Application.ActiveDocument.Shapes.Item
(32).TextFrame.TextRange.FormattedText.Text.ToString

But I can't find the property to change the Text Box
border.

In Word XP, a user would change this manually by
selecting the Text Box; select Format | Text Box; Change
the value of Line Dashed to Solid.

Where is the Office 10.0 Object Library property that
controls this action? ;-)

Any help would be greatly appreciated.
 
P

Peter Hewett

Hi Gilroy

Try something like this:
Word.Application.ActiveDocument.Shapes.Item(36) _
.Line.DashStyle = msoLineSolid

BTW it's not part of the Office object model it's part of Words object model.

HTH + Cheers - Peter
 
G

Gilroy

That worked worderfully Peter.
Thank you!
-----Original Message-----
Hi Gilroy

Try something like this:
Word.Application.ActiveDocument.Shapes.Item(36) _
.Line.DashStyle = msoLineSolid

BTW it's not part of the Office object model it's part of Words object model.

HTH + Cheers - Peter




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top