I need to search through a worksheet for the words TOTAL U.S. and take the address of the cell and put it into an array. I then need to extract from the address just the numerals (A41 or A2000, I just want the 41 and the 2000) loaded into TOTALUS(0) = A41, NUM(0) = 41
After I load those 2 arrays I need to search for each chart.object in the worksheet (there will be approx 40) and subtract 7 from the SeriesCollection(1) and make that Point black.
This is what i’ve done so far
dim i as integer
dim j as integer
i = 0
for each cell in ActiveWorksheet
search for first “TOTAL U.S.”
TOTALUS(i) = range.address
i = i + 1
some kind of string code to get numerals from TOTALUS(0) and put number in ADDRESS(0)
next cell
j = 1
for each chart.object
Search for first chart.object and activate it
ActiveChart.SeriesCollection(1).select
ActiveChart.SeriesCollection(1).Points((Address(j)) – 7).select
with selection.interior
.colorIndex = 1
.Pattern=xlSolid
end with
j = j + 1
next
I need some help with my dim statement for the searches and how to “extract” only the numerals from the TOTALUS array. Thanks you very much.