G
Guest
I would do something like this:
For A=1 to 15 'Division
For B=1 to 150 'CC
For C=1 to 700 'GL
AcctCode=ActiveCell.Offset(A,0).Value & _
ActiveCell.Offset(B,1).Value & _
ActiveCell.Offset(C,2).Value
'Add code to store this new value somewhere
Next C
Next B
Next A
This assumes that the three elements you describe are in consecutive
columns. Keep in mind that you will have over 1.5Million codes (15*150*700).
Hope this helps.
For A=1 to 15 'Division
For B=1 to 150 'CC
For C=1 to 700 'GL
AcctCode=ActiveCell.Offset(A,0).Value & _
ActiveCell.Offset(B,1).Value & _
ActiveCell.Offset(C,2).Value
'Add code to store this new value somewhere
Next C
Next B
Next A
This assumes that the three elements you describe are in consecutive
columns. Keep in mind that you will have over 1.5Million codes (15*150*700).
Hope this helps.