Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
own1y
 
Posts: n/a
Default how do i delete every other line (all line 2's) in a page?

how do i delete every other line (all line 2's) in a page?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default how do i delete every other line (all line 2's) in a page?

If you will tell us why you want to do this, we may be able to come up with
a solution. Are the lines blank, or do they contain text? Do they end in
paragraph marks?

--
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.

"own1y" wrote in message
...
how do i delete every other line (all line 2's) in a page?


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
own1y
 
Posts: n/a
Default how do i delete every other line (all line 2's) in a page?

the reason is it contains text

"Suzanne S. Barnhill" wrote:

If you will tell us why you want to do this, we may be able to come up with
a solution. Are the lines blank, or do they contain text? Do they end in
paragraph marks?

--
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.

"own1y" wrote in message
...
how do i delete every other line (all line 2's) in a page?



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey
 
Posts: n/a
Default how do i delete every other line (all line 2's) in a page?

how do i delete every other line (all line 2's) in a page?

Interesting question. (all line 2's). lines *in* a page?

If you have a page with lines *on* it then wouldn't there only be one
line 2?

Your follow up explanation wasn't much better. However, here is one
way. Run this macro:


Sub Test()
Selection.WholeStory
Selection.Collapse
Selection.MoveDown wdLine, 1
On Error GoTo Handler
Do
Selection.Bookmarks("\Line").Select
Selection.Delete
Selection.MoveDown wdLine, 1
Loop
Handler:
End Sub



own1y wrote:
the reason is it contains text

"Suzanne S. Barnhill" wrote:

If you will tell us why you want to do this, we may be able to come up with
a solution. Are the lines blank, or do they contain text? Do they end in
paragraph marks?

--
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.

"own1y" wrote in message
...
how do i delete every other line (all line 2's) in a page?




  #5   Report Post  
0uch 0uch is offline
Junior Member
 
Posts: 0
Smile

Hi, I have a document that I got from a subtitle run on a video and I am trying to get the data out but the subtitles have repeated themselves, so every second line is a repeat. I ran this macro and it worked great but how would I change it if I needed to run it only on one section of the document please? Could I select a section for it to run and if so how would it work and what would I change in this macro? Thank you for your answer previously! It was helpful!


Quote:
Originally Posted by Greg Maxey View Post
how do i delete every other line (all line 2's) in a page?

Interesting question. (all line 2's). lines *in* a page?

If you have a page with lines *on* it then wouldn't there only be one
line 2?

Your follow up explanation wasn't much better. However, here is one
way. Run this macro:


Sub Test()
Selection.WholeStory
Selection.Collapse
Selection.MoveDown wdLine, 1
On Error GoTo Handler
Do
Selection.Bookmarks("\Line").Select
Selection.Delete
Selection.MoveDown wdLine, 1
Loop
Handler:
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
Restart Page No Deletes Even Page Footer chris Formatting Long Documents 6 April 24th 06 04:17 PM
Changing page number Denis Levesque Microsoft Word Help 4 April 11th 06 12:58 PM
Page numbers and line number problem tspitzig Page Layout 9 October 25th 05 03:13 PM
section breaks change each time opening document Dave Microsoft Word Help 6 March 21st 05 12:01 PM
How can I delete a 2nd page that keeps printing blank? I only wan. angelove Page Layout 3 February 2nd 05 09:23 PM


All times are GMT +1. The time now is 10:17 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"