2nd Line of text??? Shape at a x,y location???

Started by thehank, October 26, 2009, 04:27:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thehank

This for all the help guys!!! I'm almost done!!! 8) ;D :D ;) :)
2 more questions:
I'm using VB to draw relationships between shapes in Visio 2003...

1) How do I get a second line of text to appear on my shapes?
2) How do I find out if a particular x,y location is already populated by a shape?

Visio Guy

#1
Hi TH,

1. Try adding a carriage return in your string:

  shp.Text = "Bob" & vbcrlf & "Jones"

2. Look up HitTest and SpatialNeighbors in the Visio SDK help file. There is also some code that does this in the download that goes with this article: Visio Network Server Shape Icon Customization Tool

For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

thehank