Question : Excel VBA Array Based on Cell Value

I am attempting to create an array in which the values are populated based upon a cell's value in a sheet called Output.

If the value of cell O9 > 0 then A should be populated into the array
.....
If the value of cell O17 > 0 then I should be populated into the array

I am attempting to make my array look like so if all values are > 0 :

ws = Array("A", "B", "C", "D", "E", "F", "G", "H", "I")

Basically, if cell O9 = 0 and cell O12 = 0 (and all others are > 0) then the array should look like this:

ws = Array("B", "C", "E", "F", "G", "H", "I")

The array should dynamically change based upon the cell values being > 0 or not.

Please let me know if I need to go into more detail.

Thank you in advance for your responses!

Answer : Excel VBA Array Based on Cell Value

Something like this file???
I changed it a little.  You have to run the macro.  It will create sheets A - I depending on what values are in the array which is defined by O9:O17 being over 0.

When you run the macro in this file, it will create new sheets named the letter of whatever is in the array...

:-)
Albert
 
Sample file
 
Random Solutions  
 
programming4us programming4us