pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi Currently my code looks like this.
But what i want is to start from J4 till J12 and then J3.
The range will be within J3:J12 however i want the loop to startfrom J4 and end in J3....
Thanks for advice.
But what i want is to start from J4 till J12 and then J3.
The range will be within J3:J12 however i want the loop to startfrom J4 and end in J3....
Thanks for advice.
Code:
[/FONT]
[FONT=Courier New]Option Explicit[/FONT]
[FONT=Courier New]Sub t()
Dim i As Range
For Each i In Range("j3:j12")
If i <> "" Then
Dim x As Integer
Dim y As String
x = i.Value
y = i.Offset(0, -3).Value
Range("E" & Rows.Count).End(xlUp).Offset(1, 0).Select
Selection.Resize(x, 1).Value = y
End If
Next i
End Sub