Hi there,
Rather than refering to an object on a page as below (by an index), I've been trying to refer the 'selected' item, however I keep getting a 'type mismatch'?
I'm trying to apply this way of referencing the object, which is a line.
So rather than 'myDocument.Shapes(1)' I want to use 'Selection.ShapeRange'.
Please can someone help.
Thanks
Nick
Rather than refering to an object on a page as below (by an index), I've been trying to refer the 'selected' item, however I keep getting a 'type mismatch'?
Code:
Set myDocument = ActiveDocument
pointsArray = myDocument.Shapes(1).Nodes.Item(1).Points
I'm trying to apply this way of referencing the object, which is a line.
Code:
Selection.ShapeRange.Nodes.SetPosition 1, currXvalue + 10, currYvalue
Please can someone help.
Thanks
Nick