Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
jbly jbly is offline
external usenet poster
 
Posts: 5
Default Erase a line of text beginning with known word(s)

I have a file from another application that I edit with Word. I want erase
the entire line for every instance a line begins with PT_ORIG*. I tried to
search for all instances of PT_ORIG* (then Special manual line break), but it
doesn't seem to find it. Also what would I put in the replace box because
that will leave a blank line in the file?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Erase a line of text beginning with known word(s)

On Thu, 4 Sep 2008 11:52:01 -0700, jbly wrote:

I have a file from another application that I edit with Word. I want erase
the entire line for every instance a line begins with PT_ORIG*. I tried to
search for all instances of PT_ORIG* (then Special manual line break), but it
doesn't seem to find it. Also what would I put in the replace box because
that will leave a blank line in the file?


No reasonable answer can be given until you answer these three questions:

- Is there an actual asterisk character in the text after the G, or are you
using the asterisk as a wildcard?

- Is there other text between PT_ORIG* and the end of the line?

- Is there a manual line break (the character inserted by Shift+Enter), not a
paragraph mark or column break or something else, at the end of the line?


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
jbly jbly is offline
external usenet poster
 
Posts: 5
Default Erase a line of text beginning with known word(s)

1. There is no asterisk. I was using it as a wildcard
2. Yes, there is text between PT_ORIG and the end of the line
3. The end of the line is just a return (ENTER) I think. It definitely isn't
the shift+enter.


"Jay Freedman" wrote:

On Thu, 4 Sep 2008 11:52:01 -0700, jbly wrote:

I have a file from another application that I edit with Word. I want erase
the entire line for every instance a line begins with PT_ORIG*. I tried to
search for all instances of PT_ORIG* (then Special manual line break), but it
doesn't seem to find it. Also what would I put in the replace box because
that will leave a blank line in the file?


No reasonable answer can be given until you answer these three questions:

- Is there an actual asterisk character in the text after the G, or are you
using the asterisk as a wildcard?

- Is there other text between PT_ORIG* and the end of the line?

- Is there a manual line break (the character inserted by Shift+Enter), not a
paragraph mark or column break or something else, at the end of the line?


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Erase a line of text beginning with known word(s)

In that case, in the Replace dialog, click the More button and check the "Use
wildcards" box, then enter this in the Find What box:

PT_ORIG*^13

The Special Manual line break that you used before looks specifically for the
Shift+Enter character, not a regular Enter. For reasons that aren't clear to
anyone outside Microsoft, you can't use the ^p code for a regular paragraph mark
when you're doing a wildcard search, so you must use the ASCII code (^13)
instead.

Leave the Replace With box empty and click the Replace All button. Because the
paragraph mark is part of the Find What text, it will be removed along with the
text, and there won't be any blank line left behind.


On Mon, 8 Sep 2008 13:39:02 -0700, jbly wrote:

1. There is no asterisk. I was using it as a wildcard
2. Yes, there is text between PT_ORIG and the end of the line
3. The end of the line is just a return (ENTER) I think. It definitely isn't
the shift+enter.


"Jay Freedman" wrote:

On Thu, 4 Sep 2008 11:52:01 -0700, jbly wrote:

I have a file from another application that I edit with Word. I want erase
the entire line for every instance a line begins with PT_ORIG*. I tried to
search for all instances of PT_ORIG* (then Special manual line break), but it
doesn't seem to find it. Also what would I put in the replace box because
that will leave a blank line in the file?


No reasonable answer can be given until you answer these three questions:

- Is there an actual asterisk character in the text after the G, or are you
using the asterisk as a wildcard?

- Is there other text between PT_ORIG* and the end of the line?

- Is there a manual line break (the character inserted by Shift+Enter), not a
paragraph mark or column break or something else, at the end of the line?



--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
jbly jbly is offline
external usenet poster
 
Posts: 5
Default Erase a line of text beginning with known word(s)

Thanks, that worked.

Jason

"Jay Freedman" wrote:

In that case, in the Replace dialog, click the More button and check the "Use
wildcards" box, then enter this in the Find What box:

PT_ORIG*^13

The Special Manual line break that you used before looks specifically for the
Shift+Enter character, not a regular Enter. For reasons that aren't clear to
anyone outside Microsoft, you can't use the ^p code for a regular paragraph mark
when you're doing a wildcard search, so you must use the ASCII code (^13)
instead.

Leave the Replace With box empty and click the Replace All button. Because the
paragraph mark is part of the Find What text, it will be removed along with the
text, and there won't be any blank line left behind.


On Mon, 8 Sep 2008 13:39:02 -0700, jbly wrote:

1. There is no asterisk. I was using it as a wildcard
2. Yes, there is text between PT_ORIG and the end of the line
3. The end of the line is just a return (ENTER) I think. It definitely isn't
the shift+enter.


"Jay Freedman" wrote:

On Thu, 4 Sep 2008 11:52:01 -0700, jbly wrote:

I have a file from another application that I edit with Word. I want erase
the entire line for every instance a line begins with PT_ORIG*. I tried to
search for all instances of PT_ORIG* (then Special manual line break), but it
doesn't seem to find it. Also what would I put in the replace box because
that will leave a blank line in the file?

No reasonable answer can be given until you answer these three questions:

- Is there an actual asterisk character in the text after the G, or are you
using the asterisk as a wildcard?

- Is there other text between PT_ORIG* and the end of the line?

- Is there a manual line break (the character inserted by Shift+Enter), not a
paragraph mark or column break or something else, at the end of the line?



--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.



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
Erase a line Lisa B. Page Layout 2 August 4th 08 08:21 PM
i want to add spaces at the beginning of a line of text belle2714 Microsoft Word Help 1 June 10th 08 06:09 PM
How do I remove / erase / delete / hide a LINE in Word AutoChaise New Users 1 June 4th 07 11:00 AM
symbols in the beginning of the line and at the beginning of theline in style news.microsoft.com New Users 3 April 11th 07 12:12 PM
How do I erase a horizontal line in Word? Lindsay New Users 3 July 6th 06 05:25 PM


All times are GMT +1. The time now is 12:28 PM.

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"