Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-30-2023, 02:14 AM
gmayor's Avatar
gmayor gmayor is offline Help, Remove all tables borders As of here, don't work Windows 10 Help, Remove all tables borders As of here, don't work 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
 

Tags
help please, table borders



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Tables in All Headers in Every Section - Remove cell's padding Cendrinne Word VBA 6 03-06-2022 04:26 AM
Help, Remove all tables borders As of here, don't work Count numer of areas between boarders tdody Excel Programming 4 08-13-2015 01:02 PM
Help, Remove all tables borders As of here, don't work Does anyone know how to remove breaks between tables? chrisd2000 Word Tables 18 07-02-2014 02:48 PM
How to remove background when copy and paste, no fill doesn't work. mingo Word 1 07-29-2010 02:25 PM
How to remove background in word. 'No Fill' does not work! mingo Word 0 07-27-2010 01:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:28 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