A
andycharger
Can someone help me with this?
I have declared a load of variables at the top of my code, replacin
the last digits with the month number. I have also declared a tem
varable to get a month number out of my row
e.g.
Dim strFD1 as Integer
Dim strFD2 as Integer
etc......
Dim strTemp as Integer
strTemp = Cells(rows, "A").value
Now im going through a loop statement and checking one of the column
and adding the value to whichever month variable needs the value.
i.e
strFD(strTemp) = strFD(strtemp) + Cells(Rows, "B").value
Obviously this wont work but I need to make the variable name
combination of strFD and the value from strTemp.
Can anyone tell me how I do this properly?
Thank
I have declared a load of variables at the top of my code, replacin
the last digits with the month number. I have also declared a tem
varable to get a month number out of my row
e.g.
Dim strFD1 as Integer
Dim strFD2 as Integer
etc......
Dim strTemp as Integer
strTemp = Cells(rows, "A").value
Now im going through a loop statement and checking one of the column
and adding the value to whichever month variable needs the value.
i.e
strFD(strTemp) = strFD(strtemp) + Cells(Rows, "B").value
Obviously this wont work but I need to make the variable name
combination of strFD and the value from strTemp.
Can anyone tell me how I do this properly?
Thank