Gos-C
Active Member
- Joined
- Apr 11, 2005
- Messages
- 258
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
I would like to concatenate a 10-digit number located in column A, a number located in column F and a number located in column G. The resulting string must be a 26-digit number. The number in column F must be 10 digits in length by adding leading zeroes (if required) and the number in G must be 6 digits by adding leading zeroes (if required). I am unable to figure it out.
I am getting scientific numbers with I used the following lines:
Any help?
Thanks,
Gos-C
I would like to concatenate a 10-digit number located in column A, a number located in column F and a number located in column G. The resulting string must be a 26-digit number. The number in column F must be 10 digits in length by adding leading zeroes (if required) and the number in G must be 6 digits by adding leading zeroes (if required). I am unable to figure it out.
I am getting scientific numbers with I used the following lines:
Code:
For i = 5 To lRow
ActiveSheet.Cells(i, 16).Value = CStr(ActiveSheet.Cells(i, 1).Value & ActiveSheet.Cells(i, 6).Value & ActiveSheet.Cells(i, 7).Value)
Next i
Any help?
Thanks,
Gos-C