repositioning shape in group

J

Joe

I am using Visio 2002 and am using VBA to automate the creation of a diagram.

I have several shapes that are groups. Each group is composed of a textbox and a bitmap. Depending on where the shape is dropped on the page (right side, left side, top bottom, etc.), I would like the textbox to move. If the shape is dropped on the top of the page, I would like the textbox to be located above the bitmap; if the shape is dropped on the right side of the page, I would like the textbox to be on the right side of the bitmap, etc.

Does anyone know how to do this?

TIA,
 
D

David Parker

Insert TextTransform section and enter formula of your choice in the
TextPinX and TextPinY cells.
You can refere to the page center with ThePage!PageWidth*0.5 and
ThePage!PageHeight*0.5

Joe said:
I am using Visio 2002 and am using VBA to automate the creation of a diagram.

I have several shapes that are groups. Each group is composed of a
textbox and a bitmap. Depending on where the shape is dropped on the page
(right side, left side, top bottom, etc.), I would like the textbox to move.
If the shape is dropped on the top of the page, I would like the textbox to
be located above the bitmap; if the shape is dropped on the right side of
the page, I would like the textbox to be on the right side of the bitmap,
etc.
 
J

Joe

Thank you.
--
Joe

VBA Automation/VB/C++/Web and DB development


David Parker said:
Insert TextTransform section and enter formula of your choice in the
TextPinX and TextPinY cells.
You can refere to the page center with ThePage!PageWidth*0.5 and
ThePage!PageHeight*0.5

Joe said:
I am using Visio 2002 and am using VBA to automate the creation of a diagram.

I have several shapes that are groups. Each group is composed of a
textbox and a bitmap. Depending on where the shape is dropped on the page
(right side, left side, top bottom, etc.), I would like the textbox to move.
If the shape is dropped on the top of the page, I would like the textbox to
be located above the bitmap; if the shape is dropped on the right side of
the page, I would like the textbox to be on the right side of the bitmap,
etc.
 

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