Hello all,
I am working on a spreadsheet, in which I have written a macro whereby it selects and cuts data within a defined range (in this case "K1:T1001") and pastes this to the first empty row in column A. Here is the specific line used in this macro:
If Not IsEmpty(MyCell) Then
ActiveSheet.Range("K1:T1001").Cut Destination:=ActiveSheet.Range("A" & Rows.Count).End(xlUp).Offset(2)
End If
I would like to use this macro for other similar spreadsheets where the range of rows to be selected may differ (however, the columns will always be K:T). I'm afraid I have reached my limit of knowledge with VBA to know how to select only cells containing data within this range.
Any help would be greatly appreciated!
I am working on a spreadsheet, in which I have written a macro whereby it selects and cuts data within a defined range (in this case "K1:T1001") and pastes this to the first empty row in column A. Here is the specific line used in this macro:
If Not IsEmpty(MyCell) Then
ActiveSheet.Range("K1:T1001").Cut Destination:=ActiveSheet.Range("A" & Rows.Count).End(xlUp).Offset(2)
End If
I would like to use this macro for other similar spreadsheets where the range of rows to be selected may differ (however, the columns will always be K:T). I'm afraid I have reached my limit of knowledge with VBA to know how to select only cells containing data within this range.
Any help would be greatly appreciated!