View Single Post
 
Old 02-18-2022, 12:59 AM
Cendrinne's Avatar
Cendrinne Cendrinne is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Aug 2019
Location: Montreal Quebec Canada
Posts: 200
Cendrinne is on a distinguished road
Question Help with script - Collapse Tables as of a point till the end of doc

Hello Pros,
I've been searching and trying, can't seem to find a good solution.

At times, I've already worked on 20 pages in a big document. There comes a point, you try to find a solution to speed up the tasks. So at times, I do find a given script to help me do the rest the 60 pages. I don't want to start over what I've done on the first 20 pages.

I'm not sure if it's colapse I need, and I've even tried:

Code:
  Set oRng = ActiveDocument.Range(Selection.Range.Start, ActiveDocument.Range.End)

Selection.Collapse Direction:=wdCollapseStart
Nope, it still touches all the tables earlier in my document. Thank god I've tested it first on a small amount of tables in a new document. I had 6 tables to test, I've selected the last 3 tables, and it touched all 6 tables.

Is there a way, to say: "This point forward''?

Any insights, please let me know.

Cendrinne
Reply With Quote