Hi,
I want to fill Tab pairs, like:
[0] = Eng, 2
[1] = De, 3
[2] = PL, 4
[3] = FR, 5
etc...
I know how to only add first value.
How to
1) add second value and
2) check if the first element is into Tab? (because value like Eng, De....need to be unique into Tab)
I want to fill Tab pairs, like:
[0] = Eng, 2
[1] = De, 3
[2] = PL, 4
[3] = FR, 5
etc...
I know how to only add first value.
How to
1) add second value and
2) check if the first element is into Tab? (because value like Eng, De....need to be unique into Tab)
Code:
Dim CostCatTab() As Variant
Dim tabSize as Long
For b = 3 To 20
CostCategory = wsSum.Cells(10, b).Value
Value = wsSum.Cells(11, b).Value
tabSize = tabSize + 1
ReDim Preserve CostCatTab(tabSize)
CostCatTab(tabSize) = CostCategory
Next