how do i create a macro that would check the contents of cells
Hi, I am stcuk on Excel VB. I am trying to create a macro that when run would
check to see if there is an 'X' in 6 specific cells on a row(the cells are next to each other), there is an X in all of them it would then display a msg saying 'not possible', else it would not doing anything. I hope i did pass the problem across in a sensible manner. Thanks for helping. |
how do i create a macro that would check the contents of cells
I'd just use another cell next to those 6 cells:
=if(countif(a1:f1,"x")=6,"Not Possible","") Format it in a nice big red font. Jade wrote: Hi, I am stcuk on Excel VB. I am trying to create a macro that when run would check to see if there is an 'X' in 6 specific cells on a row(the cells are next to each other), there is an X in all of them it would then display a msg saying 'not possible', else it would not doing anything. I hope i did pass the problem across in a sensible manner. Thanks for helping. -- Dave Peterson |
All times are GMT +1. The time now is 02:25 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com