bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 711
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I have a huge spreadsheet that contains patient visit dates spanning three years. The visits can range from weekly to monthly to quarterly. I have over two patients that start at different times during this time and I've used conditional formatting to highlight those visits who visit dates fall within a particular date range (the cells turn pink if they fall within this date range, for example). I can spend hours counting and doubling counting the highlighted dates to ensure that I haven't missed anything.
Is there a VBA macro or function that will look at the conditionally formatting color I'm using and count the number of times that this color appears in the range of cells (the ones that are pink- the conditional formatting color I'm using)?
For example, if I have a range going from A1:AZ5000 I might have several hundred patients that have visit dates that fall within a particular range and are highlighted pink as a result. Is there a way of doing this in VBA?
Thank you for your help.
Michael
Is there a VBA macro or function that will look at the conditionally formatting color I'm using and count the number of times that this color appears in the range of cells (the ones that are pink- the conditional formatting color I'm using)?
For example, if I have a range going from A1:AZ5000 I might have several hundred patients that have visit dates that fall within a particular range and are highlighted pink as a result. Is there a way of doing this in VBA?
Thank you for your help.
Michael