Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Change Cell Border Colors

I have a very complicated form with merged cells, thick and thin lines,
dashes, etc. However, someone put all these borders in Navy!

How can I switch the whole document's border colors en masse?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Change Cell Border Colors

This macro will change **every** cell with a border color to the new color
you designate...

Sub ChangeBorderColors()
Dim C As Range
Dim WS As Worksheet
For Each WS In Worksheets
For Each C In WS.UsedRange
If C.Borders.ColorIndex < xlColorIndexNone Then
C.Borders.ColorIndex = 3
End If
Next
Next
End Sub

Change the example color index of 3 that I used (inside the If..Then block)
to the color index that you want **all** your existing borders set to.

--
Rick (MVP - Excel)


"That70sHeidi" wrote in message
...
I have a very complicated form with merged cells, thick and thin lines,
dashes, etc. However, someone put all these borders in Navy!

How can I switch the whole document's border colors en masse?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
On a Mac how do I change the border colour of the active cell? Lino Excel Discussion (Misc queries) 2 May 23rd 06 01:36 PM
cell border colors in Excel Rob Excel Discussion (Misc queries) 9 April 25th 06 01:44 AM
I can't change border for cell Dave Excel Discussion (Misc queries) 2 January 17th 06 06:36 PM
Changing the border of one cell s/n change the border of adjacent gjanssenmn Excel Discussion (Misc queries) 2 October 5th 05 08:35 PM
Excel will not change cell border colours Gren Excel Discussion (Misc queries) 0 August 9th 05 01:17 PM


All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"