Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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


 
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 11:01 AM
How can I delete a 2nd page that keeps printing blank? I only wan. angelove Page Layout 3 February 2nd 05 08: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"