Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2013, 08:12 AM
dabrams dabrams is offline Color White All Table Borders Windows XP Color White All Table Borders Office 2010 32bit
Novice
Color White All Table Borders
 
Join Date: Dec 2012
Posts: 12
dabrams is on a distinguished road
Default Color White All Table Borders

I have many small tables in our monthly report.
However I don't want the table borders to appear.


Is there a macro out there that can choose all of the table borders (starting from a certain bookmark or page number) and color them white?
Thank you people so much for your invaluable assistance!
Reply With Quote
  #2  
Old 01-20-2013, 08:52 AM
gmaxey gmaxey is offline Color White All Table Borders Windows 7 32bit Color White All Table Borders Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Why would you want "white" borders? Why not no borders?

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Word.Range
Dim oTbl As Word.Table
  Set oRng = ActiveDocument.Range
  oRng.Start = ActiveDocument.Bookmarks("StartHere").Range.Start
  For Each oTbl In oRng.Tables
    With oTbl
      .Borders(wdBorderLeft).LineStyle = wdLineStyleNone
      .Borders(wdBorderRight).LineStyle = wdLineStyleNone
      .Borders(wdBorderTop).LineStyle = wdLineStyleNone
      .Borders(wdBorderBottom).LineStyle = wdLineStyleNone
      .Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
      .Borders(wdBorderVertical).LineStyle = wdLineStyleNone
      .Borders(wdBorderDiagonalDown).LineStyle = wdLineStyleNone
      .Borders(wdBorderDiagonalUp).LineStyle = wdLineStyleNone
    End With
  Next oTbl
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 01-23-2013, 12:19 AM
dabrams dabrams is offline Color White All Table Borders Windows XP Color White All Table Borders Office 2010 32bit
Novice
Color White All Table Borders
 
Join Date: Dec 2012
Posts: 12
dabrams is on a distinguished road
Default

Thanks alot, Greg!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Color White All Table Borders Page-crossing borders in a table with hidden between-cell borders tenpaiman Word 2 08-08-2012 07:20 PM
Color White All Table Borders Please tell me it doesn't take 7 statements to turn table borders off Jennifer Murphy Word VBA 5 07-25-2012 03:12 PM
Formatting a table with double borders qwertyas PowerPoint 2 05-02-2012 05:10 AM
Color White All Table Borders need to get rid of white outline boxes in table bigredscowboy Word 5 03-06-2012 05:43 PM
Color White All Table Borders Word VBA: add borders to active table tinfanide Word VBA 2 12-02-2011 05:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:10 PM.


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