Link to home
Start Free TrialLog in
Avatar of billwharton
billwharton

asked on

Visio 2003 icon word wrap

Visio 2003

When I try to name a Cisco or other icon, the number of characters I can fit in a single line is limited. I want to fit in at least 20 characters in a single line without it automatically going to the next line and still use a font size of 10. I know how to do this with a new text block that can be placed below the icon but I rather do this naming the icon like a switch or router itself. Right clicking on the icon -> format -> text doesn't have any options for 'word wrap'
Avatar of Redlord
Redlord

Using the text block tool (accessible from the drop down beside the text tool) you can resize the textbox, making it longer will allow you to enter more text with out it automatically wrapping

Jon Estey
Avatar of billwharton

ASKER

Well, my original question did state that I am not looking for the text block tool hence there wasn't really anything helpful int he expert's comment.

riteheer, you decide...
billwharton,

You said "I know how to do this with a new text block ", what I instructed didnt use a "new" text block but rather modified the text block that was already there using the "new text block" tool.

Jon
Isn't resizing the same thing Jon whether I modify a current text block or create a new text block and modify it? The point here is that I did know how to do that and stated it appropriately in my original question.

My original query asked to avoid word wrap when naming an icon directly (without using any text block at all) and that's still unanswered
billwharton, Well no.. you didnt mention that you didnt want to resize it in your original question, and  I have no way of knowing your skill level/knowledge of visio so I gave you the simplest solution to your problem

There is no way to avoid word wrapping when "naming an icon directly" without either modifying the icon itself and resizing its text block there or using VBA and making a small script that resizes the text block for an object whenever it is added to a sheet

this is assuming that by "naming an icon directly" you mean clicking on the icon and typing text.

It would also be possible to create a small VBA script that simply resizes all text blocks so that no word wraping occurs.

Jon Estey
Thanks Jon

That small VBA script would be the answer I'm looking for
ASKER CERTIFIED SOLUTION
Avatar of Redlord
Redlord

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Should I simply copy and paste the data between Function & End Sub and put it in a text file, name it with a .vbs extension and run it? How do I make this work/

thx Jon
In visio, show the developer toolbar, click on visual basics editor, double click on "this document" in the projects pane, then paste the above code into the file

Jon