#1   Report Post  
Posted to microsoft.public.word.newusers
Kim
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Luc
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Kim
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Suzanne S. Barnhill
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Greg
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Replace feature puts new text in upper case every time. Why? DrDonRead Microsoft Word Help 2 January 4th 06 10:11 PM
BUG with replace command gds Microsoft Word Help 0 October 20th 05 07:39 PM
Find and Replace feature when recording a Macro WCRicster Microsoft Word Help 1 August 18th 05 07:23 PM
Can't get Replace to work BruceM Microsoft Word Help 5 February 22nd 05 01:49 AM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 05:47 PM


All times are GMT +1. The time now is 02:40 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"