Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Oct 2004
    Location
    Indianapolis, Indiana, USA
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Searching with partial formatting (2003)

    Does anyone know if there is a way to do a search-and-replace that involves only part of the replacement text being formatted? (Or part of the search text...)

    For example, a file I'm working on refers often to Windows 9x. I would like to do a search and replace to italicize just the "x".
    I know I could do it in VBA, but I'd rather not. It is a rare occurrence, and it isn't always Windows 9x. And I'd like it to be something I could easily teach my coworkers.

    Let that be a lesson -- if you're naming a new widget, sure, using italics in the name sounds good, but you'll cause a number of headaches in the publishing world. (I'm talking to you, Oracle9i !)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Searching with partial formatting (2003)

    No, the formatting always applies to the entire 'Find what' or 'Replace with' text. But you could do the following:
    - Use Edit | Replace to find the first instance of 'Windows 9x'.
    - Click in the document.
    - Italicize the 'x'.
    - Select 'Windows 9x' and copy it to the clipboard.
    - Activate the Replace dialog.
    - Enter ^c in the 'Replace with' box. This stands for 'contents of the clipboard'.
    - Continue Find Next / Replace or click Replace All.

  3. #3
    Lounger
    Join Date
    Oct 2004
    Location
    Indianapolis, Indiana, USA
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Searching with partial formatting (2003)

    Great "loophole"! This is perfect! Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •