PC Review


Reply
Thread Tools Rate Thread

Border Limitations for Conditional Formats

 
 
Blue Max
Guest
Posts: n/a
 
      3rd Apr 2010
Unfortunately, we have observed that the conditional format feature appears
to limit the choices for borders. For example, the user can select both
solid and broken line borders, but cannot modify the thickness of the
borders as you can when in the normal cell format dialog. Is there a way to
specify a conditional format that specifies a thicker border?

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      3rd Apr 2010
Sub thickborders()
Select Case Range("a1").Value
Case Is = 1: mc = 4
Case Else
End Select
With ActiveCell
..Interior.ColorIndex = mc
..BorderAround Weight:=xlThick

End With
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Blue Max" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Unfortunately, we have observed that the conditional format feature
> appears to limit the choices for borders. For example, the user can
> select both solid and broken line borders, but cannot modify the thickness
> of the borders as you can when in the normal cell format dialog. Is there
> a way to specify a conditional format that specifies a thicker border?


 
Reply With Quote
 
Blue Max
Guest
Posts: n/a
 
      4th Apr 2010
Thank you, Don, for the code to set border thickness. However, how does
this work with Conditional Formats? Can a conditional formats call up a
macro? If so, is the macro applied to each cell included in the range for
the conditional format rule?

Finally, what is meaning of the line Case Is = 1: mc = 4

Thanks,

Richard

**********************
"Don Guillett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Sub thickborders()
> Select Case Range("a1").Value
> Case Is = 1: mc = 4
> Case Else
> End Select
> With ActiveCell
> .Interior.ColorIndex = mc
> .BorderAround Weight:=xlThick
>
> End With
> End Sub
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Blue Max" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Unfortunately, we have observed that the conditional format feature
>> appears to limit the choices for borders. For example, the user can
>> select both solid and broken line borders, but cannot modify the
>> thickness of the borders as you can when in the normal cell format
>> dialog. Is there a way to specify a conditional format that specifies a
>> thicker border?

>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      5th Apr 2010
It is in lieu of a macro which may not be called by CF. However, it can be
automatic if part of a worksheet_change event macro in the sheet module. IMO
it's better than cluttering up with CF. the case was to show the possible
ways to set the color. If all else fails>>>

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Blue Max" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you, Don, for the code to set border thickness. However, how does
> this work with Conditional Formats? Can a conditional formats call up a
> macro? If so, is the macro applied to each cell included in the range for
> the conditional format rule?
>
> Finally, what is meaning of the line Case Is = 1: mc = 4
>
> Thanks,
>
> Richard
>
> **********************
> "Don Guillett" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Sub thickborders()
>> Select Case Range("a1").Value
>> Case Is = 1: mc = 4
>> Case Else
>> End Select
>> With ActiveCell
>> .Interior.ColorIndex = mc
>> .BorderAround Weight:=xlThick
>>
>> End With
>> End Sub
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "Blue Max" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> Unfortunately, we have observed that the conditional format feature
>>> appears to limit the choices for borders. For example, the user can
>>> select both solid and broken line borders, but cannot modify the
>>> thickness of the borders as you can when in the normal cell format
>>> dialog. Is there a way to specify a conditional format that specifies a
>>> thicker border?

>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formats, how to scroll and view all formats? Bill E Microsoft Excel Worksheet Functions 0 12th May 2010 07:58 PM
Conditional formats- paste special formats? =?Utf-8?B?amNhcm5leQ==?= Microsoft Excel Misc 1 1st Nov 2007 06:37 PM
Limitations on the number of formats used in a workbook =?Utf-8?B?UkFG?= Microsoft Excel Crashes 1 8th Jul 2006 10:59 AM
Border Formats Dave Microsoft Excel Programming 10 20th Dec 2005 04:10 PM
Can border formats be locked? =?Utf-8?B?RXJpYw==?= Microsoft Excel Programming 1 21st Jan 2004 03:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 PM.