Ramadan2512
New Member
- Joined
- Sep 7, 2024
- Messages
- 40
- Office Version
- 2021
- Platform
- Windows
I have a workbook with multiple sheets and I have a simple macro to go to the last row in the sheet
my problem is that when i copy the macro button to other sheet in the same workbook it doesn't work unless I change the range name "amberville" but when i do this the button in the other sheet change automatically to the new range name
please let me know how to make the same macro run separately in each sheet
VBA Code:
Sub LastRow()
Range("amberville").Select
Selection.End(xlDown).Select
End Sub
please let me know how to make the same macro run separately in each sheet
Last edited by a moderator: