I need help with one of the script. I am new to vba scripting. I have one file with 2 worksheets. Sheet 1 has numbers in 9 columns. I have to insert one blank row after every 50 rows. For which I created the script. Now second part is tricky as all those blank rows has to be filled with data from Sheet 2 which also has a series of numbers dynamically entered. This data to be inserted in blank row that, 1st blank row of sheet1 with 1st row of Sheet2, 2nd blank row (51st row) with 2nd row from sheet2 and so on. The script I tried is here. It stuck at first blank row. and that too not selecting dynamically from sheet2. Please help me with the correct code. Thanks a lot.
Sub Copydatafromothersheet()
Dim ws As Worksheet
Dim c As Range
Dim LastRow As Long, i As Long
Dim j As Integer
Dim sCol As Integer, rCount As Integer, cRow As Integer
Dim cRowValue As String
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To LastRow
sCol = 1
rCount = Cells(Rows.Count, sCol).End(xlUp).Row
For currentRow = 1 To rCount
cRowValue = Cells(currentRow, sCol).Value
If IsEmpty(cRowValue) Or cRowValue = "" Then
Cells(currentRow, sCol).Select
End If
Next
Sheets("COVER").Range("A2:I2").Offset(1, 0).Copy
Sheets("Sheet1").Cells(cRowValue, "A").End(xlUp).Offset(1). _
PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Next i
End Sub