I would like to write a script that looks like a loop to me. My data is under column A.
- I want to put script say in column B. eg B2 = A2
- Under B3 I put in "xxxx" and under B4 I put in "yyyy" and then repeat step 1 & 2 until end of data.
So far I have the below. How can I loop it as I have to like type it up another many hundred times.... Thanks.
Sub DATA()
Dim DL As Long
Dim Script1 As String
Dim Script2 As String
DL = Range("A" & Rows.Count).End(xlUp).Row
Script1 = "KEY END"
Script2 = "KEY WAIT"
Range("B2").Value = Range("A2")
Range("B3").Value = Script1
Range("B4").Value = Script2
Range("B5").Value = Range("A3")
Range("B6").Value = Script1
Range("B7").Value = Script2
Range("B8").Value = Range("A4")
Range("B9").Value = Script1
Range("B10").Value = Script2
End Sub
