Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replace feature
I can't imagine what I'm doing wrong but....
When I try to replace a tab with a first line indent of .5 it doesn't remove the tab, just adds the first line indent. So I have a first line indent of ..5 and a tab. Any reason why it's not replace the tab? Thanks. Office 2003 |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replace feature
Kim,
Those are two different functions, either indent or use a tab. I would suggest to use the indent as that will be repeated when you hit enter to start a new paragraph. Luc Sanders (MVP - Powerpoint) "Kim" schreef in bericht ... I can't imagine what I'm doing wrong but.... When I try to replace a tab with a first line indent of .5 it doesn't remove the tab, just adds the first line indent. So I have a first line indent of .5 and a tab. Any reason why it's not replace the tab? Thanks. Office 2003 |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replace feature
Yes, that I know. My question was how to do a global replace of a tab with
a first line indent. We don't create documents with tabs everywhere, but when we scan or get documents from the outside we have to edit them and we always remove the tabs at the beginining of each paragraph and set it to a first line indent or we add a style, but unfortantely when we add a style it doesn't remove the tab either. "Luc" wrote: Kim, Those are two different functions, either indent or use a tab. I would suggest to use the indent as that will be repeated when you hit enter to start a new paragraph. Luc Sanders (MVP - Powerpoint) "Kim" schreef in bericht ... I can't imagine what I'm doing wrong but.... When I try to replace a tab with a first line indent of .5 it doesn't remove the tab, just adds the first line indent. So I have a first line indent of .5 and a tab. Any reason why it's not replace the tab? Thanks. Office 2003 |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replace feature
I suspect you'll have to do this in two separate operations, one to apply
the style and another to remove the tabs. For the second replace, just search for ^t (in a paragraph of the given style, if desired) and replace with nothing. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Kim" wrote in message ... Yes, that I know. My question was how to do a global replace of a tab with a first line indent. We don't create documents with tabs everywhere, but when we scan or get documents from the outside we have to edit them and we always remove the tabs at the beginining of each paragraph and set it to a first line indent or we add a style, but unfortantely when we add a style it doesn't remove the tab either. "Luc" wrote: Kim, Those are two different functions, either indent or use a tab. I would suggest to use the indent as that will be repeated when you hit enter to start a new paragraph. Luc Sanders (MVP - Powerpoint) "Kim" schreef in bericht ... I can't imagine what I'm doing wrong but.... When I try to replace a tab with a first line indent of .5 it doesn't remove the tab, just adds the first line indent. So I have a first line indent of .5 and a tab. Any reason why it's not replace the tab? Thanks. Office 2003 |
#5
Posted to microsoft.public.word.newusers
|
|||
|
|||
Replace feature
Kim,
How about: Sub Test() Dim oPara As Paragraph For Each oPara In ActiveDocument.Range.Paragraphs If oPara.Range.Characters.First = vbTab Then oPara.Range.Characters.First.Delete oPara.FirstLineIndent = InchesToPoints(0.5) End If Next End Sub |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word Replace feature puts new text in upper case every time. Why? | Microsoft Word Help | |||
BUG with replace command | Microsoft Word Help | |||
Find and Replace feature when recording a Macro | Microsoft Word Help | |||
Can't get Replace to work | Microsoft Word Help | |||
Find and Replace anomaly | Microsoft Word Help |