VBABEGINER
Well-known Member
- Joined
- Jun 15, 2011
- Messages
- 1,284
- Office Version
- 365
- Platform
- Windows
Hello All,
I have new query..in col J i have date. in col I i have some Text's..
Col I
Col J
I'm trying to use concatenate this two...in col H. But in my "left" code, it picks up "1" instead of "01"...
and hence giving me a wrong output..like..
I want to Text + month (from date) i.e. 1st 02 digit + Year (from date)
this is my code..
can any one pls fix this..
I have new query..in col J i have date. in col I i have some Text's..
Col I
Code:
CG D2 42
GN 01 82
Col J
Code:
1/1/2002
12/1/2014
I'm trying to use concatenate this two...in col H. But in my "left" code, it picks up "1" instead of "01"...
and hence giving me a wrong output..like..
Code:
CG D2 42 - 1//2002
I want to Text + month (from date) i.e. 1st 02 digit + Year (from date)
this is my code..
Code:
Range("G1").Select
Dim RowCnt5 As Integer
RowCnt5 = Range("G3").End(xlDown).Row
For m = 2 To RowCnt5
Cells(m, "H").Value = Cells(m, "I") & " - " & Left(Cells(m, "J"), 2) & "/" & Right(Cells(m, "J"), 4)
Next m
can any one pls fix this..