Change line color

Y

yonido

hello

is there a way to change the color of the lines to be added to the
document - through word's object model / macros?
i mean a functionality similar to changing the line color from the
"Drawing" toolbar.
note that ive also noticed a macro named "ChangeLineColor", but no
matter what arguments i pass to it, i get the error message - "The
object does not support this property / method"..

thanks in advance
 
M

Mick Hardy

This should get you started. Without more detail, I can't be more specific.

activedocument.Shapes(1).Line.ForeColor = vbBlack
activedocument.Shapes(1).Line.ForeColor = vbBlue
activedocument.Shapes(1).Name = "MyShape"
activedocument.Shapes("MyShape").Line.ForeColor = vbBlue
activedocument.Shapes("MyShape").Line.ForeColor = vbBlack
activedocument.Shapes("MyShape").Line.ForeColor.rgb = rgb(255,255,0)
 
Y

yonido

thanks, but what i really want to do is change the Ink Annotaion's
color - not the existing ones, but the ones that are currently being
drawn.

(To simulate these actions:
* pressing "insert ink annotations" -> this is done by calling
Application.Run "InsertInkAnnotations". Now the cursor is changed to a
dot in the color shown in the toolbar.

* then, changing the annotations' color - manually u do it by
selecting it from the toolbar. how do i do that from code?

thanks
 
M

Mick Hardy

I have no idea. Application.Run "InsertInkAnnotations" does not work
in Word 2000 on Windows XP. Is this a new feature in tablets or Word
XP or a third party macro?
 

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