mezr
Active Member
- Joined
- Feb 2, 2003
- Messages
- 301
I have some worksheets that I want to be able to (via code) move copies of to another workbook. These worksheets have commandbuttons on them and the related code is in the respective worksheet module so it can go with the sheet.
However, I'm finding that when I move a copy of a sheet to another workbook, the commandbuttons' names change. Such as "cmd_sort_names" changes to "commandbutton1". Consequently the buttons do not execute the code which was formerly associated with them.
Is there a way around this?
However, I'm finding that when I move a copy of a sheet to another workbook, the commandbuttons' names change. Such as "cmd_sort_names" changes to "commandbutton1". Consequently the buttons do not execute the code which was formerly associated with them.
Is there a way around this?