Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 02-13-2022, 05:13 AM
gmayor's Avatar
gmayor gmayor is offline Help with a script, Range to select as of row 1 and column 2 to the end of the table Windows 10 Help with a script, Range to select as of row 1 and column 2 to the end of the table Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You still have to process each table separately e.g.
Code:
Sub Macro1()
Dim oTable As Table
Dim i As Integer
    For Each oTable In ActiveDocument.Tables
        oTable.Columns(2).Select
        For i = 3 To oTable.Columns.Count
            Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
        Next i
        'do something with the selection here
    Next oTable    'then move on to the next table
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Tags
all tables, help please, range.rows



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a script, Range to select as of row 1 and column 2 to the end of the table How to script most table column in word document? Cendrinne Word VBA 15 03-22-2021 06:45 PM
Help with a script, Range to select as of row 1 and column 2 to the end of the table Dynamically select a TextBox based on range value IIOII Word VBA 8 07-20-2016 11:28 PM
Help with a script, Range to select as of row 1 and column 2 to the end of the table Help with Index Function to Select Range of Cells bretyuin Excel 1 02-24-2016 05:11 AM
VBA Word Table - Select More than 1 Column at a time - Apply Formatting jc491 Word VBA 12 09-24-2015 06:03 AM
Way to select a range using the mouse on a chart? omahadivision Excel Programming 6 12-29-2012 09:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft