Maybe this:
Sub Divide()
Dim LR As Long
If MsgBox("Complete this action?", vbYesNo) = vbYes Then
Range("A1") = 1
Range("A2") = 2
LR = Range("A2").End(xlDown).Row
Range("A1:A2").AutoFill Destination:=Range("A1:A" & LR)
End If
End Sub
Since the one above overlaps the next section (which is what your original macro seemed to do), this version does NOT do that:
Sub Divide()
Dim LR As Long
If MsgBox("Complete this action?", vbYesNo) = vbYes Then
Range("A1") = 1
Range("A2") = 2
LR = Range("A2").End(xlDown).Row - 1
Range("A1:A2").AutoFill Destination:=Range("A1:A" & LR)
End If
End Sub
Bookmarks