Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding space before every italics word 1

Status
Not open for further replies.

acevans

Technical User
Apr 9, 2003
78
US
Does anyone know of a macro/find feature that will allow me to find every italics word and add a space in front of it without going page by page?
 
Hi acevans,

You could use a wildcard Find/Replace, with:
Find = '(<*>)'
Replace = ' \1'
(without the single quotes) and, for the 'Find' expression, choosing Format|Font|Italic.


Cheers
[MS MVP - Word]
 
I've tried that. but I get a response from word saying

"the replace with text contains a group number which is out of range"

What I have are novels that have been scanned by a third party to convert to e-books and everywhere there are italics words, the space is missing before it so its smooshed together with the word before it.
 
Hi acevans,

The Find/Replace works fine for me. Did you remove the single quotes?

However, you seem to have a more fundamental problem - if the space really has been deleted, what you're looking for is not a series of words, but merely a series of italic characters - there are no 'words' for the Find/Replace to Find. For example, if you've got:
The quickbrownfox jumps over the lazy dog.
the 'quickbrownfox' is all one word. In this case, changing the Find expression to '(*>)' will insert a space thus:
The quick brownfox jumps over the lazy dog.
You'll still have to insert your own space into 'brown fox', though.


Cheers
[MS MVP - Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top