A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

connect two shape objects



 
 
Thread Tools Display Modes
  #1  
Old September 27th, 2009, 02:25 AM posted to microsoft.public.visio.general
layla
external usenet poster
 
Posts: 22
Default connect two shape objects

Hi,
what code do we use if we want to connect to shape objects.i.e. connect
(shape1,shape2)
  #2  
Old September 27th, 2009, 04:36 AM posted to microsoft.public.visio.general
AlEdlund
external usenet poster
 
Posts: 468
Default connect two shape objects

It's all in the visio sdk. There are also numerous examples over on Chris
Roth's site (www.visguy.com)
al


"layla" wrote in message
...
Hi,
what code do we use if we want to connect to shape objects.i.e. connect
(shape1,shape2)


  #3  
Old October 2nd, 2009, 04:33 PM posted to microsoft.public.visio.general
layla
external usenet poster
 
Posts: 22
Default connect two shape objects

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!
  #4  
Old October 2nd, 2009, 05:13 PM posted to microsoft.public.visio.general
AlEdlund
external usenet poster
 
Posts: 468
Default connect two shape objects

try this
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
al


"layla" wrote in message
...
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!


  #5  
Old October 5th, 2009, 07:39 PM posted to microsoft.public.visio.general
layla
external usenet poster
 
Posts: 22
Default connect two shape objects

On Oct 2, 12:13*pm, "AlEdlund" wrote:
try thishttp://msdn.microsoft.com/en-us/library/aa201778(office.10).aspx
al

"layla" wrote in message

...



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!- Hide quoted text -


- 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!
  #6  
Old October 6th, 2009, 09:35 AM posted to microsoft.public.visio.general
AlEdlund
external usenet poster
 
Posts: 468
Default connect two shape objects

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


"layla" wrote in message
...
On Oct 2, 12:13 pm, "AlEdlund" wrote:
try thishttp://msdn.microsoft.com/en-us/library/aa201778(office.10).aspx
al

"layla" wrote in message

...



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!- Hide quoted text -


- 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!


  #7  
Old October 7th, 2009, 03:09 PM posted to microsoft.public.visio.general
David J Parker [MVP Visio]
external usenet poster
 
Posts: 110
Default connect two shape objects

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

"layla" wrote in message
...
On Oct 2, 12:13 pm, "AlEdlund" wrote:
try thishttp://msdn.microsoft.com/en-us/library/aa201778(office.10).aspx
al

"layla" wrote in message

...



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!- Hide quoted text -


- 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!


  #8  
Old October 7th, 2009, 06:12 PM posted to microsoft.public.visio.general
layla
external usenet poster
 
Posts: 22
Default connect two shape objects

On Oct 7, 10:09*am, "David J Parker [MVP Visio]"
wrote:
I don't think you can glue two Alignment cells together like that
The Alignment section is transient.

"layla" wrote in message

...



On Oct 2, 12:13 pm, "AlEdlund" wrote:
try thishttp://msdn.microsoft.com/en-us/library/aa201778(office.10).aspx
al


"layla" wrote in message


....


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!- Hide quoted text -


- 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!- Hide quoted text -


- Show quoted text -


Hi,
The error message is" inappropriate source object"
  #9  
Old October 7th, 2009, 09:47 PM posted to microsoft.public.visio.general
AlEdlund
external usenet poster
 
Posts: 468
Default connect two shape objects

The cells that you attach to should eventually point to a place on a page.
You might check this out...

http://msdn.microsoft.com/en-us/library/ms367543.aspx

al




"layla" wrote in message
...
On Oct 7, 10:09 am, "David J Parker [MVP Visio]"
wrote:
I don't think you can glue two Alignment cells together like that
The Alignment section is transient.

"layla" wrote in message

...



On Oct 2, 12:13 pm, "AlEdlund" wrote:
try
thishttp://msdn.microsoft.com/en-us/library/aa201778(office.10).aspx
al


"layla" wrote in message


...


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!- Hide quoted text -


- 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!- Hide quoted text -


- Show quoted text -


Hi,
The error message is" inappropriate source object"


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.