Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selection.Borders and replace with new colour procedure


I have populated my worksheet with data from pivot tables. An advantag
is that all cells are merged and borders are drawn for me. My questio
is whether it is possible to change the colour of all lines and border
using a VB procedure. I have recorded a macro below. Perhapss I need t
detect all lines/borders that are black then do a replace with ne
colour.


Code
-------------------
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 6
End With

-------------------


Once again thanks

--
webby200
-----------------------------------------------------------------------
webby2006's Profile: http://www.excelforum.com/member.php...fo&userid=3674
View this thread: http://www.excelforum.com/showthread.php?threadid=56700

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
find/replace cell borders Steve Excel Discussion (Misc queries) 2 June 4th 09 02:17 PM
SUM CELL BORDERS? (and by colour too?) Neil Pearce Excel Discussion (Misc queries) 4 February 25th 08 01:55 PM
Some borders show on the screen as grey, when the colour is black. Dawn Bowater Excel Worksheet Functions 0 March 9th 06 09:58 AM
Display sum of selection with SelectionChange procedure Herman[_4_] Excel Programming 3 August 16th 04 01:42 PM


All times are GMT +1. The time now is 12:43 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"