I am attempting to merge multiple sheets together using this code:
However I am getting object required error.
I can write this to where it copies and pastes over the first blank cell in row A. However, I need it to paste over the first blank cell after A2 in column J. (Since A2 will always be blank)
please help.
Code:
Sub Combine() Dim lst As Long 'combines order form into winshuttle ready combinedOE
Application.ScreenUpdating = False
Sheets(1).Copy Sheets(1)
With Sheets(1).Name
lst = .Range("I" & Rows.Count).End(xlUp).Row + 1
.Range("A" & lst).PasteSpecial xlPasteColumnWidths
.Range("A" & lst).PasteSpecial xlPasteValues
End With
With Sheets(1).UsedRange
.ColumnWidth = 22
.RowHeight = 18
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End With
End Sub
However I am getting object required error.
I can write this to where it copies and pastes over the first blank cell in row A. However, I need it to paste over the first blank cell after A2 in column J. (Since A2 will always be blank)
please help.