ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Active Cell (https://www.excelbanter.com/excel-programming/283172-active-cell.html)

Howard

Active Cell
 
I want the active cell to be yellow and all other cells to be white. So, In the visual basic window, I change the object to Worksheet and the procedure to Selection Change. Then I typ
Cells.Interior.Color = byWhit
ActiveCell.Interior.Color = vbYello
However, that gets rid of the gridlines too
And I think there is an easier way to to do this using conditional formatting and the Countif function(?), but I don't know how
Appreciate your suggestions
HF

Ron de Bruin

Active Cell
 
Check out this webpage
http://www.mcgimpsey.com/excel/highl...iteRetainColor

I think you like the Add-in from Chip Pearson
http://www.mcgimpsey.com/excel/highl...iteRetainColor

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Howard" wrote in message ...
I want the active cell to be yellow and all other cells to be white. So, In the visual basic window, I change the object to

Worksheet and the procedure to Selection Change. Then I type
Cells.Interior.Color = byWhite
ActiveCell.Interior.Color = vbYellow
However, that gets rid of the gridlines too.
And I think there is an easier way to to do this using conditional formatting and the Countif function(?), but I don't know

how.
Appreciate your suggestions.
HF




Ron de Bruin

Active Cell
 
Oops

I think you like the Add-in from Chip Pearson
http://cpearson.com/excel/RowLiner.htm


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Ron de Bruin" wrote in message ...
Check out this webpage
http://www.mcgimpsey.com/excel/highl...iteRetainColor

I think you like the Add-in from Chip Pearson
http://www.mcgimpsey.com/excel/highl...iteRetainColor

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Howard" wrote in message ...
I want the active cell to be yellow and all other cells to be white. So, In the visual basic window, I change the object to

Worksheet and the procedure to Selection Change. Then I type
Cells.Interior.Color = byWhite
ActiveCell.Interior.Color = vbYellow
However, that gets rid of the gridlines too.
And I think there is an easier way to to do this using conditional formatting and the Countif function(?), but I don't know

how.
Appreciate your suggestions.
HF






Howard

Active Cell
 
Thanks! Works beautifully

Howard


All times are GMT +1. The time now is 06:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com