Hello all!
I am in need of a little help here. I've got my macro to run through my data and spit out the data like I want, EXCEPT; I get an extra "0" added into my data.
This is my formulas:
Sheet3.Cells(f, 1).Value = "0" & Sheet2.Cells(j, 1).Value & Sheet2.Cells(j, 2).Value & " " & Sheet2.Cells(j, 3).Value
Sheet3.Cells(g, 2).Value = "0" & Sheet2.Cells(g, 1).Value & Sheet2.Cells(g, 2).Value & Sheet2.Cells(g, 4).Value & " " & Sheet2.Cells(g, 5).Value
This is the data:
01. 10 . 002 test1
01. 10 . 002 .01 Notes
01. 10 . 002 .02 Reviews
01. 10 . 002 .03 Documents
01. 10 . 002 .04 Mat.
01. 10 . 002 .05 Plan
and this is the output:
01.10.006 test5
01.10.0060.01 Notes
01.10.0060.02 Reviews
01.10.0060.03 Documents
01.10.0060.04 Mat.
01.10.0060.05 Plan
As you can see from above, the second set of numbers gets an extra "0" stuck behind it! I've tried changing the formula around, formatting, changing other parts of code that create the numbers; but to no avail. Anyone have any ideas?
I am in need of a little help here. I've got my macro to run through my data and spit out the data like I want, EXCEPT; I get an extra "0" added into my data.
This is my formulas:
Sheet3.Cells(f, 1).Value = "0" & Sheet2.Cells(j, 1).Value & Sheet2.Cells(j, 2).Value & " " & Sheet2.Cells(j, 3).Value
Sheet3.Cells(g, 2).Value = "0" & Sheet2.Cells(g, 1).Value & Sheet2.Cells(g, 2).Value & Sheet2.Cells(g, 4).Value & " " & Sheet2.Cells(g, 5).Value
This is the data:
01. 10 . 002 test1
01. 10 . 002 .01 Notes
01. 10 . 002 .02 Reviews
01. 10 . 002 .03 Documents
01. 10 . 002 .04 Mat.
01. 10 . 002 .05 Plan
and this is the output:
01.10.006 test5
01.10.0060.01 Notes
01.10.0060.02 Reviews
01.10.0060.03 Documents
01.10.0060.04 Mat.
01.10.0060.05 Plan
As you can see from above, the second set of numbers gets an extra "0" stuck behind it! I've tried changing the formula around, formatting, changing other parts of code that create the numbers; but to no avail. Anyone have any ideas?
Last edited: