How do I set up a macro to set selected words typeface to Bold?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have to set certains words in a document typeface to bold from plain text.
When I record a macro in Word to "replace all" nothing happens. If I
manually "replace all" or "replace", the typeface sets properly to bold. It
is as if the macro is not examining the document
 
Douglas said:
I have to set certains words in a document typeface to bold from
plain text. When I record a macro in Word to "replace all" nothing
happens. If I manually "replace all" or "replace", the typeface sets
properly to bold. It is as if the macro is not examining the document

Hi Douglas

The macro recorder has a bug, and it fails to record your choice of
formatting.

Go to http://word.mvps.org/FAQs/MacrosVBA/ModifyRecordedMacro.htm and look
at the section titled "Fixing broken Replace macros". It will show you how
to fix the macro you recorded.
 
It is very difficult to guess what is happening without your code being
posted.

Why not simply mark the words you want to emphasize in a custom character
style and then change the formatting of that style to bold?
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Back
Top