Moving Visio Object by VBA Code

G

Gary

I am able to move visio objects by VBA Code. The move command is a relative
position. What I mean, the x, y position to move object x to position x1,y1
is different than the move object y to the same position.

Is there a command I could use that will move any two objects to a given
position??

Thanks,

Gary
 
J

John

Hello Gary,

Use the PinX / Pin Y properties:

shp.Cells("PinX").Formula = "22mm"
shp.Cells("PinY").Formula = "32mm"

Best regards

John
 

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