miming1986
New Member
I'm relatively inexperienced at VBA code and was hoping someone could help.
The code below copies data from range B2:AC2 from the "Release" sheet and inserts a new row and pastes the data to the "Record" sheet. Problem is I now want to exclude L2: P2 so when it pastes to the new row inserted, it just automatically fills the formula above them. Thank you so much in advance!
The code below copies data from range B2:AC2 from the "Release" sheet and inserts a new row and pastes the data to the "Record" sheet. Problem is I now want to exclude L2: P2 so when it pastes to the new row inserted, it just automatically fills the formula above them. Thank you so much in advance!
Code:
Sub Generate()
Dim RowNum As Long
If MsgBox("Release Loan and Record?", vbYesNo) = vbNo Then Exit Sub
Application.ScreenUpdating = False
Sheets("Release").Range("B2:AC2").Copy
Sheets("Record").Activate
RowNum = 2
Do While Not Len(Cells(RowNum, 1).Value) = 0
RowNum = RowNum + 1
Loop
Cells(RowNum, 1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.ScreenUpdating = True
End Sub
Last edited: