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?
aggie_aguirre5260
May 21, 2024Copper Contributor
I appreciate your suggestion, but I prefer to have the cell value flashing or blinking. That is more "eye-catching" than simply changing font and/or cell color. BTW, I'm the only one that will be using the spreadsheet, so there isn't a concern that it would be dangerous or irritating to others. So, my question still stands, is my preference possible?
HansVogelaar
May 21, 2024MVP
It's possible, but I still strongly recommend against it. It would require VBA code to run every second or so, and this will most likely interfere with the normal operation of the workbook.
- aggieaguirreMay 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?
- HansVogelaarMay 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?