Hi,
I want to perform the same macro on different sheets in my workbook. I have 10 sheets for which I want to perform the macro. (Sheet "2007" to Sheet "2016)
This is the code to be executed on every sheet :
Sub SelectName()
Sheets("2007").Select
Range("A" & Cells.Rows.Count).End(xlUp).Select
Range(Cells(Selection.Row, 1), Cells(Selection.Row, 3)).Select
Range(Selection, Selection.End(xlUp)).Select
Selection.Copy
Sheets("BDMV").Select
Range("A" & Cells.Rows.Count).End(xlUp).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
End Sub
How can i do that?
Thanks
I want to perform the same macro on different sheets in my workbook. I have 10 sheets for which I want to perform the macro. (Sheet "2007" to Sheet "2016)
This is the code to be executed on every sheet :
Sub SelectName()
Sheets("2007").Select
Range("A" & Cells.Rows.Count).End(xlUp).Select
Range(Cells(Selection.Row, 1), Cells(Selection.Row, 3)).Select
Range(Selection, Selection.End(xlUp)).Select
Selection.Copy
Sheets("BDMV").Select
Range("A" & Cells.Rows.Count).End(xlUp).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
End Sub
How can i do that?
Thanks