I have a range of formulas (E12:O21) The Header Row is (E11-O11) - Total Row is (E21:O21).
I want to use VBA to search that range of formulas and find the cells with values to return the "actual" used range within that range. I will use this new range to create a chart eliminating blank chart areas. The formulas in the range will always display values in order meaning they will fill down and across and will not have values scattered around the formula range. The below example would return a new Range of (E12:I16).
I want to use VBA to search that range of formulas and find the cells with values to return the "actual" used range within that range. I will use this new range to create a chart eliminating blank chart areas. The formulas in the range will always display values in order meaning they will fill down and across and will not have values scattered around the formula range. The below example would return a new Range of (E12:I16).
E | F | G | H | I | J | K | L | M | N | |
11 | Group 1 | Group 2 | Group 3 | Group 4 | Group 5 | Group 6 | Group 7 | Group 8 | Group 9 | Group 10 |
12 | V | V | V | V | V | |||||
13 | V | V | V | V | ||||||
14 | V | V | V | |||||||
15 | V | V | ||||||||
16 | V | |||||||||
17 | ||||||||||
18 | ||||||||||
19 | ||||||||||
20 | ||||||||||
21 |