Wrox Programmer Forums
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2007, 04:37 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default finding symbols

Can anyone give us sample code for finding symbols in a Word document? So that, for example, we can find all instances of a theta inserted using Insert/Symbol and change them to a greek pi.



 
Old August 3rd, 2007, 11:27 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Just use the find and replace built into Word. The symbols are just characters in the font that makes the symbol for you for a given character.

So if you need a shadowed checkbox symbol, a lowercase q is inserted as WingDings.

Find the symbol in your document, and highlight it. the Font dropdown will change to the font for the highlit character. Then find out what character it is.

Using Find and replace, specify the font, the character, and match-case. Replace with the font and character that creates the symbol you are after.

In the example you gave, both are in the Symbol font. Theta is upper- or lowercase Q. Pi is upper- or lowercase P.

Symbols are nothing special; they're just characters.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Translating symbols to their unicode values Pankaj C XSLT 24 September 11th, 2007 03:35 AM
clearing unused symbols and objects nairaby Flash (all versions) 4 August 16th, 2007 02:41 PM
How to get list of Currencies (symbols/Name)? Jell VB.NET 0 June 22nd, 2005 05:48 AM
Symbols and Membership Types rgerald Forum and Wrox.com Feedback 9 August 13th, 2003 10:11 AM
trademark and registered symbols kikoyjr XML 3 July 25th, 2003 03:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.