View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Terry D Terry D is offline
external usenet poster
 
Posts: 2
Default How do I replace non-constants in word?



"Jean-Guy Marcil" wrote:

"Terry D" wrote:

Is there any way that I can replace in word when something is not constant? I
am copying columns over from Excel. Some are in two columns and some are in
three. A, B and C change on each line

For example I need to replace
A tab tab B tab tab C
with
A tab B tab C

I can't just replace tab tab with tab as this affects the two column and I
end up with A tab C. Do I use a wildcard and if so how do I do it?


I am sorry, but I don't follow.

If, as you write, you have

A tab tab B tab tab C

and you do a Find/Replace where you replace "tab tab" by "tab," you will
end up with

A tab B tab C

not

A tab C


Sorry it's a bit confusing:

What I'm trying to do is replace the following:

John [tab][tab]Michael [tab][tab]Jones
John[tab][tab]Smith
so can copy back into excel (where the [tab] is a column break
I need the [tab][tab]Michael[tab][tab] to be [tab]Michael][tab] where
Michael is a variable.

if I replace [tab][tab] with [tab] it changes the John Smith line and that
needs to stay the same.

Hope this makes more sense.