Can I change the object in Visio

When I drag and drop a .cfm file on a Visio 2007 page, it creates an icon, can I change that icon and make it bigger. If so, how?
overcolorAsked:
Who is Participating?
 
Scott HelmersConnect With a Mentor Visio Consultant, Trainer, Author, and DeveloperCommented:
I've attached a new version of the file that contains the macro. On page 2 you'll find three dropped files. The macro will resize all selected shapes.

It's pretty simple-minded at this point without a lot of error checking.

If you want to change the multiplier (I used 4 as you requested), open the code editor (Alt+F11), look for the comment about changing the resize factor and enter a larger or smaller number.
Change-image-size-for-dropped-fi.vsd
0
 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
I just did some experimenting and found a way, but it either requires tinkering with the ShapeSheet or writing a macro to do that for you.

The attached file shows several examples of larger sizes.

Are you familiar with modifying the ShapeSheet by hand? If so, I can provide instructions. If not, or if this is a frequent need and you'd like a macro to automate the change, please let me know.
Change-image-size-for-dropped-fi.vsd
0
 
overcolorAuthor Commented:
No I don't know much about ShapeSheet, but the size of the larger one on your file is what Im looking for
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
Which of the larger sizes do you prefer? times 2, 3 or 4?

BTW, as you can probably see in the sample, the "text" is actually part of the image, so when you increase the size of the image, the text size increases as part of it. That's why in the bottom image, at X4 of the original, the text extends beyond the boundary of the shape that contains the image.

One final thought: I used whole multiples of the original. But if you want the size to be 2.5X of the original, or any other multiple, that's easy to do.
0
 
overcolorAuthor Commented:
x4 but, when I drag a file onto a Visio page it puts the file name there, will this still do that?
0
 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
Yes, this is the standard behavior if you drag a file onto a Visio page. Visio creates an image that consists of an icon and the filename.
0
 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
Would you like a macro that allows you to resize the image and name of the file after you drop it?
0
 
overcolorAuthor Commented:
Yes please
0
 
overcolorAuthor Commented:
when I drop files on to page 2, I get nothing? Am I doing that right?
0
 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
The macro is not set up to run automatically when you drop a file onto the page. So after you drop a file, make sure the dropped shape is selected and then run the macro.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.