connect two shape objects

L

layla

Hi,
what code do we use if we want to connect to shape objects.i.e. connect
(shape1,shape2)
 
L

layla

Hi,
I looked at the stuff ,but still I do not know how to connect a line.I
guess the links is useful for someone who try to draw them manulally
not for VBA. Any suggestion how I could write such a code
Thanks!
 
L

layla

try thishttp://msdn.microsoft.com/en-us/library/aa201778(office.10).aspx
al






- Show quoted text -

Hi,again,
I wrote this code to connect two shapes ,but I keep gettiing error
messages ,do you see what I am doing wrong
Set celObj1 = ashp(1).Cells(" AlignBottom")
Set celObj2 = ashp(2).Cells(" AlignTop")
celObj1.GlueTo celObj2

Thanks!
 
A

AlEdlund

layla,
without the error information and where it is failing, you haven't given
enough to work with
al
 
D

David J Parker [MVP Visio]

I don't think you can glue two Alignment cells together like that
The Alignment section is transient.
 
L

layla

I don't think you can glue two Alignment cells together like that
The Alignment section is transient.








- Show quoted text -

Hi,
The error message is" inappropriate source object"
 

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