PANKAJUTEKAR
Board Regular
- Joined
- Jun 10, 2011
- Messages
- 79
Good Morning All,
Yestreday i had asked the query about concatenate.
I coded was
this code i got from one of the Experts as solution.
the value started from cell b2.
P-with tag required in a2.
col b is increament with every new value.
but the concatenate place done only in same cell i.e- a2 only.
my col a does not increament.
So can anyone give me correct modification?
Yestreday i had asked the query about concatenate.
I coded was
Function concatenate()
Dim i As Integer, j As Integer, k As Integer
'Cells(i, k) = Cells(2, 1)
j = 2
Do Until j = 18
ActiveCell = "P-" & Cells(2, j)
j = j + 1
'k = k + 1
ActiveCell = ActiveCell.Offset(1, 0)
Loop
End Function
Private Sub Workbook_Open()
Call concatenate
End Sub
this code i got from one of the Experts as solution.
Function concatenate()
Dim j As Integer
j = 1
Do Until j = 18
ActiveCell = "P-" & Cells(2, j)
j = j + 1
ActiveCell = ActiveCell.Offset(1, 0)
Loop
End Function
the value started from cell b2.
P-with tag required in a2.
col b is increament with every new value.
but the concatenate place done only in same cell i.e- a2 only.
my col a does not increament.
So can anyone give me correct modification?