Is it possible to find and replace text formatting?

L

luciel

Hello,

I'd like to know if it's possible to find and replace text based on text
formatting and style. For example, if I have text in Arial 9pt, and I want
all text in this format to be changed to Arial 7 pt. Is this possible in
Visio? Or do you have to do this manually?

Thanks.
 
C

Chris Roth [MVP]

Hi Luciel,

There's nothing build in that will help you to do this...unless you define a
Text style (Format > Define Styles...)

You could define a style named LucyArial and give it the arial font, 9pt,
etc... Then you apply that to shapes using Format > Styles, or using the
drop-downs in the tool bars. Then at a later time you can edit these styles
and change, say, the font size.

Another trick is to save your document in Visio xml format - .vdx. Then you
can open the file in a text editor and search for "9pt" and change those
values to "7pt". It would be harder to find both "Arial" and "7pt" though,
since those values are stored in different parts of the shape - ie: the xml
won't make that any easier for you.

--
Hope this helps,

Chris Roth
Visio MVP

More Visio shapes, articles, development info and pure diagramming fun at:
www.visguy.com
 
L

luciel

Hi Chris,

Thanks for your reply. For the first suggestion, this isn't convenient for
me as I have many shapes grouped together that each have their own text
style. I would first have to ungroup all the shapes before applying a new
style to the one shape I want to change. This doesn't seem efficient.

As for the xml, that's not working for me either for various reasons.

What I was really looking for was a simple text find and replace feature, as
in Word for example.

Thanks for your help all the same.
 
C

Chris Roth [MVP]

Last option would be to do this with code...anybody sitting near you know
VBA? I'd whip it up for you but I'm late for band practice... : )

--
Hope this helps,

Chris Roth
Visio MVP

More Visio shapes, articles, development info and pure diagramming fun at:
www.visguy.com
 

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