Forum Discussion
aggie_aguirre5260
May 21, 2024Copper Contributor
unique macro
Is it possible to write a macro that causes a cell value to flash or blink if the cell value fails to meet a maximum or minimum value?
aggieaguirre
May 21, 2024Copper Contributor
I will heed your advice. However, just for my curiosity, what would the macro look like? If it's not unreasonable to send it, can you send it to me?
HansVogelaar
May 21, 2024MVP
See the attached demo workbook. There is code in three places:
- In the standard module Module1
- In the worksheet module of Sheet1
- In the workbook module ThisWorkbook
One of the side effects that you'll notice is that you'll be asked to save the workbook each time you close it even if you didn't change anything.
- aggieaguirreMay 21, 2024Copper ContributorI appreciate your advice and for sending the macro. If I elect to put this on my sheet (just to see how it would look), will I have to write the respective codes on each of the three places you mentioned?
- HansVogelaarMay 21, 2024MVP
Yes.
Change the values of the constants dblMin and dblMax for your situation, and change the function rngCell to return the cell that you want to flash. These are all in Module1.
- aggieaguirreMay 21, 2024Copper ContributorThis is awesome. Thank you so much for sharing your knowledge and time.