Hi, All
I'm fairly new to writing macros in VBA and just wanted to see if I am doing this right or if there is a better way to write this. The program is fairly simple, it cuts all data (rows and columns) starting at A13 and pastes it to the next unused row of another sheet.
The macro seems to work fine; however, I plan to incorporate this into a much larger marco and want to make sure that the code is as optimal and error free as possible. Any advice would be greatly appreciated. The code is as follows:
I'm fairly new to writing macros in VBA and just wanted to see if I am doing this right or if there is a better way to write this. The program is fairly simple, it cuts all data (rows and columns) starting at A13 and pastes it to the next unused row of another sheet.
The macro seems to work fine; however, I plan to incorporate this into a much larger marco and want to make sure that the code is as optimal and error free as possible. Any advice would be greatly appreciated. The code is as follows:
Code:
Sheets("New Data").Activate
ActiveSheet.Range("A13").Select
ActiveSheet.Range(Selection, Selection.End(xlToRight)).Select
ActiveSheet.Range(Selection, Selection.End(xlDown)).Cut
Sheets("All Data").Select
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select
ActiveSheet.Paste