i have a document which has a lot of information in sheet1, column a right up to column BI. i would like to be able to tick a box in column BI that then removes the row from sheet 1 and puts it into sheet 2, and adds a date. this is my formula so far, but im getting stuck at the text highlighted in BOLD, as it says my subscript is out of range. i have no idea how to fix that.
Sub Cutrows()
Dim WS1 As Worksheet
Dim WS2 As Worksheet
Set WS1 = ActiveSheet
Set WS2 = Worksheets("Sheet2")
firstrow = Selection.Rows(1).Row
RowCount = Selection.Rows.Count
NEXTROW = WS9.Cells(Rows.Count, 1).And(xlUp).Row + 1
WS1.Cells(firstrow, 1).Resize(RowCount, 25).Copy Destination:=WS2.Cells(NEXTROW, 1)
WS2.Cells(NEXTROW, 26).Resize(RowCount, 1).Value = Date
WS1.Cells(firstrow, 1).Resize(RowCount, 25).Delete shift:=xlUp
End Sub
Sub Cutrows()
Dim WS1 As Worksheet
Dim WS2 As Worksheet
Set WS1 = ActiveSheet
Set WS2 = Worksheets("Sheet2")
firstrow = Selection.Rows(1).Row
RowCount = Selection.Rows.Count
NEXTROW = WS9.Cells(Rows.Count, 1).And(xlUp).Row + 1
WS1.Cells(firstrow, 1).Resize(RowCount, 25).Copy Destination:=WS2.Cells(NEXTROW, 1)
WS2.Cells(NEXTROW, 26).Resize(RowCount, 1).Value = Date
WS1.Cells(firstrow, 1).Resize(RowCount, 25).Delete shift:=xlUp
End Sub