I am trying copy 10 ranges from an Input Sheet and past them to a Database list format sheet. The problem is that there are 3 sub-total rows in Worksheet("Input"), row 21,21 and 23, but the code below copies these 3 row to Worksheet("dBASE"). Any help is greatly appreciated.
Sub copyNpaste()
Dim WSI As Worksheet
Dim WSD As Worksheet
Set WSI = Worksheets("Input")
Set WSD = Worksheets("dBASE")
WSI.Range("C14:C20", "C24:C30").Value = WSD.Cells(FinalRow + 1, 1)
WSI.Range("O14:O20", "O24:O30").Value = WSD.Cells(FinalRow + 1, 2)
WSI.Range("S14:S20", "S24:S30").Value = WSD.Cells(FinalRow + 1, 3)
WSI.Range("T14:T20", "T24:T30").Value = WSD.Cells(FinalRow + 1, 4)
WSI.Range("U14:T20", "U24:T30").Value = WSD.Cells(FinalRow + 1, 5)
End Sub()
Sub copyNpaste()
Dim WSI As Worksheet
Dim WSD As Worksheet
Set WSI = Worksheets("Input")
Set WSD = Worksheets("dBASE")
WSI.Range("C14:C20", "C24:C30").Value = WSD.Cells(FinalRow + 1, 1)
WSI.Range("O14:O20", "O24:O30").Value = WSD.Cells(FinalRow + 1, 2)
WSI.Range("S14:S20", "S24:S30").Value = WSD.Cells(FinalRow + 1, 3)
WSI.Range("T14:T20", "T24:T30").Value = WSD.Cells(FinalRow + 1, 4)
WSI.Range("U14:T20", "U24:T30").Value = WSD.Cells(FinalRow + 1, 5)
End Sub()