ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Events... Changing the Interior Color (https://www.excelbanter.com/excel-programming/334735-events-changing-interior-color.html)

kraljb[_5_]

Events... Changing the Interior Color
 

I have a macro that is superfluous in nature, but basically all it does
is allow the user to edit the header colors with ease. Anyway, I have
been trying to find if there is an event for when someone just changes
the color of a cell.

The Worksheet_Change does not apply for just a color change, and I
could use the Worksheet_SelectionChange, but that returns the cell that
they moved to, not the cell they were at.

Does anyone have any suggestions? Or am I SOL?

Thank you in advance,
-John


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=387760


Dave Peterson

Events... Changing the Interior Color
 
There's no event that will fire when your formatting changes.

You maybe able to use the worksheet_calculate event and keep track of colors so
you can compare them after each calculation.



kraljb wrote:

I have a macro that is superfluous in nature, but basically all it does
is allow the user to edit the header colors with ease. Anyway, I have
been trying to find if there is an event for when someone just changes
the color of a cell.

The Worksheet_Change does not apply for just a color change, and I
could use the Worksheet_SelectionChange, but that returns the cell that
they moved to, not the cell they were at.

Does anyone have any suggestions? Or am I SOL?

Thank you in advance,
-John

--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=387760


--

Dave Peterson

Bob Phillips[_7_]

Events... Changing the Interior Color
 
Create a toolbar button that throws up a colour picker, an d use that to set
the header colours. You then know a format change is happening.

--
HTH

Bob Phillips

"Dave Peterson" wrote in message
...
There's no event that will fire when your formatting changes.

You maybe able to use the worksheet_calculate event and keep track of

colors so
you can compare them after each calculation.



kraljb wrote:

I have a macro that is superfluous in nature, but basically all it does
is allow the user to edit the header colors with ease. Anyway, I have
been trying to find if there is an event for when someone just changes
the color of a cell.

The Worksheet_Change does not apply for just a color change, and I
could use the Worksheet_SelectionChange, but that returns the cell that
they moved to, not the cell they were at.

Does anyone have any suggestions? Or am I SOL?

Thank you in advance,
-John

--
kraljb
------------------------------------------------------------------------
kraljb's Profile:

http://www.excelforum.com/member.php...fo&userid=9955
View this thread:

http://www.excelforum.com/showthread...hreadid=387760

--

Dave Peterson





All times are GMT +1. The time now is 02:34 AM.

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