View Single Post
 
Old 03-30-2023, 02:14 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 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

If you want to process tables from the cursor position, then set a range to the area you wish to process e.g.


Code:
Sub Macro2()
Dim oRng As Range
Dim oTable As Table
Dim oBorder As Border
    Set oRng = ActiveDocument.Range
    oRng.Start = Selection.Start
    For Each oTable In oRng.Tables
        For Each oBorder In oTable.Borders
            oBorder.LineStyle = wdLineStyleNone
        Next oBorder
    Next oTable
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