Hi could you please help me with this loop.
I’m trying to copy all cells from my current sheet starting at “B9” down.
To a New sheet Starting at cell “A34”
I marked out the 2 areas where I’m stuck.
Thanks
I’m trying to copy all cells from my current sheet starting at “B9” down.
To a New sheet Starting at cell “A34”
I marked out the 2 areas where I’m stuck.
Thanks
Code:
Range("B9").Select ‘ starting point
Dim x As Variant
Dim Icount As Integer
For Each x In Range("B9", Range("B9").End(xlDown)) 'For Loop searches column for a blank
If x = "" Then Exit For 'Ends the loop when it hits a blank
vpart2 = Range("B" & Icount).Value ‘*******ß---Need Help Here
vcomplete = "SET datafile=" & Chr(34) & vpart1 & vpart2 & ".dat" & Chr(34)
Sheets("Output").Range("A" & Icount).Value = vcomplete ‘*******ß---Need Help Here
Icount = Icount + 1
Next