M
mpjohnston
I have an array:
Dim test(1 to 4) As Variant
test(1) = 0
test(2) = 0
test(3) = 0
test(4) = 0
Then I pull some information and place them into 1 - 4. array position
1 and 2 are numbers (ie 200, 40, 54, etc). Array position 3 and 4 are
percentages (ie 16.67%, 15%, 100%, 50%, etc)
When I try adding test(3) + 16.67% I get an error of type mismatch.
Then again if cell B3 contains 16.67% and I make cell C3 =B3+0 there
is no problem
Anyone know of a work around? Should I not be using variant?
Thanks,
Mike
Dim test(1 to 4) As Variant
test(1) = 0
test(2) = 0
test(3) = 0
test(4) = 0
Then I pull some information and place them into 1 - 4. array position
1 and 2 are numbers (ie 200, 40, 54, etc). Array position 3 and 4 are
percentages (ie 16.67%, 15%, 100%, 50%, etc)
When I try adding test(3) + 16.67% I get an error of type mismatch.
Then again if cell B3 contains 16.67% and I make cell C3 =B3+0 there
is no problem
Anyone know of a work around? Should I not be using variant?
Thanks,
Mike