Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query regarding referencing object on page

Status
Not open for further replies.

tecnik

Programmer
Feb 16, 2006
22
GB
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'?

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
So rather than 'myDocument.Shapes(1)' I want to use 'Selection.ShapeRange'.

Please can someone help.

Thanks

Nick
 


Hi,

"I'm trying to apply this way of referencing the object, which is a line."

But the SetPosition method does NOT apply to LINE objects. Only FreeForm Objects.

Check HELP.


Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top