Visio Guy

Visio Discussions => Programming & Code => Topic started by: FlowerGirl on September 21, 2016, 12:19:32 PM

Title: Need help with DropCallout on Drop of Timeline Milestone
Post by: FlowerGirl on September 21, 2016, 12:19:32 PM
Is there a way to have a custom "Text Callout" dropped onto the page and glued to the Activity Milestone automatically when the Activity is dropped on the page?

I created a basic macro, but it looks like it is looking for unique ID's.

Our people will be dropping and removing activities from their documents based on their needs.

I choose the Custom Callout box because it give me more flexibility to move the text around to a best fit location when needed.
The standard text that comes with the milestone was to stiff and data graphics where to hard to move around.

I include a Visio test document and the Excel data for what I am attempting to do.
I am using Visio 2010 pro.


Thanks for your help.
FlowerGirl
Title: Re: Need help with DropCallout on Drop of Timeline Milestone
Post by: metuemre on September 21, 2016, 12:48:58 PM
How about something like this? Drop an activity shape on the page and callout shape will be automatically added and glued to that shape

Title: Re: Need help with DropCallout on Drop of Timeline Milestone
Post by: FlowerGirl on September 21, 2016, 01:44:09 PM
Thanks for the quick response.  :-*

So was I close to getting this myself?
I see your macro, and how it is called on drop.

These are some of the things I need to educate my self a little more with.


Thanks again, that was just what I was looking for.

FG.
Title: Re: Need help with DropCallout on Drop of Timeline Milestone
Post by: metuemre on September 21, 2016, 02:08:00 PM
You are welcome  ;)

"Record Macro" is a great tool for start but in order to create a solution that will work whenever needed you need to make some modifications.

Regards
Title: Re: Need help with DropCallout on Drop of Timeline Milestone
Post by: FlowerGirl on January 11, 2017, 05:30:31 PM
I needed to revisit this topic, I am having an issue.

Basically, I have a time line (as posted in the template by meturemre) and the text boxes come in fine with the milestone except for one problem.

For Example: If there is a milestone with a date of 5/1/2017 and another milestone with a date of 6/1/2017, they will both look good and show the respective text box that belongs to that milestone.
BUT, if the 6/1/2017 milestone gets a new date and moves to 5/1/2017 the text box for the 6/1 shape will now be reading the data from the 5/1 shape. So they will both say the same thing, the data from the 5/1 shape.

Is there a way to keep this from happening. can the textbox somehow get locked down so this won't keep happening.

Thanks for your help as always.
FlowerGirl.
Title: Re: Need help with DropCallout on Drop of Timeline Milestone
Post by: wapperdude on January 12, 2017, 04:23:05 PM
Do you have simple example to upload?  Hard to tell what you're doing.  Using standard Visio timeline shapes, cannot replicate the problem....V2007

Wapperdude
Title: Re: Need help with DropCallout on Drop of Timeline Milestone
Post by: FlowerGirl on January 13, 2017, 12:20:23 PM
I am using the .vsd and the excel from this post string

FG