Programmatically counting info from formula
Turn on the macro recorder, then do
Edit=Find
and search for you sheet name. Specify to look in formulas.
Now turn off the macro recorder.
This is an easy way to get the parameters you need for the find command.
Now go to VBA and use the help on the FindNext command. Look at the visual
basic example. It shows how to find all instances. Combine that with the
code you recorded.
Now just add a check for the value of the cell being red, yellow or green.
--
Regards,
Tom Ogilvy
"Barb Reinhardt" wrote:
I hope I can explain this so that it makes sense.
I have a summary sheet that gets data off of individual worksheets. I want
to check for the following:
Cell Value = RED, GREEN or YELLOW
Formula in the cell contains a specific worksheet name (let's use Sheet1 for
this example)
Sheet 1 is present.
If all of these conditions are met, the count would increment by one. Can
someone help me get started on this. Once I have an idea where to start, I
can do the rest of it.
Thanks in advance for your assistance.
Regards,
Barb Reinhardt
|