Please be patient with me as part of this code is gibberish, but meant to illustrate what I'm trying to do:
First code finds last row:
Sub FindLastRow()
Dim LastRow As Long
LastRow = Sheet1.Range("C2").End(xlDown).Row
MsgBox Prompt:="Last Row is" & LastRow
End Sub
Second code copies a cell from another sheet to new pasted template on active sheet. Template is 32 rows tall and Y is the value of the rows before anything is pasted:
Sub Copy_Cell()
Dim Y As Range
Set Y = LastRow
When Sheet1.Range("C" & Rows.Count).Value > Y+32.Value Then
Y+1.Value = LastCell
End If
End Sub
3rd code is the LastCell referenced above:
Function LastCell() As Range
With Sheet5
Set LastCell = .Cells(Rows.Count, 1).End(xlUp)
End With
End Function
First code finds last row:
Sub FindLastRow()
Dim LastRow As Long
LastRow = Sheet1.Range("C2").End(xlDown).Row
MsgBox Prompt:="Last Row is" & LastRow
End Sub
Second code copies a cell from another sheet to new pasted template on active sheet. Template is 32 rows tall and Y is the value of the rows before anything is pasted:
Sub Copy_Cell()
Dim Y As Range
Set Y = LastRow
When Sheet1.Range("C" & Rows.Count).Value > Y+32.Value Then
Y+1.Value = LastCell
End If
End Sub
3rd code is the LastCell referenced above:
Function LastCell() As Range
With Sheet5
Set LastCell = .Cells(Rows.Count, 1).End(xlUp)
End With
End Function