![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
I currently used some clunky code that was written some years ago and I know there is a more streamlined way to do it....... i have a worksheet where is number greater than 1 is placed in a cell in a range, lets say, b2:b25 ,which causes the activecell (b2) and seven cells to the right to unhighlight. I need simpler code that will do this, as well as highlight the seven cells to the right if the number in B2 is deleted (blank cell)
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Posts: 24
|
Can you just use conditional formating to make the cells look the way you want based on the formula you choose? For example you could conditionally format cells c1:c10 to be highlighted if the formula =isblank(b2)='Y' is true.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
HELLO I AGREE USE CONDITIONAL FORMATTING, IT IS NICE, AND NO VBA CODE NEEDED. RGDS ANDREAS |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
thanks, you're right, all the clunky code was replaced by conditional formatting.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|