I have two Excel files and both have the same macro entitled 'sort'. There is a button on each worksheet that the user can press and it will sort the data in that worksheet using that macro.
Here is the problem...
I need to copy some of the worksheets from Excel file A (my own personal use) to Excel file B (for other people to use). However, the button on the copied over worksheets is assigned to the 'sort' macro in Excel file A. I need to manually edit the button in each worksheet to assign it to the 'sort' macro in Excel file B.
Is there a way for the worksheets to be copied over and the button on each worksheet to be assigned to the macro in the destination file, not the original file?
Thanks for your help!
Here is the problem...
I need to copy some of the worksheets from Excel file A (my own personal use) to Excel file B (for other people to use). However, the button on the copied over worksheets is assigned to the 'sort' macro in Excel file A. I need to manually edit the button in each worksheet to assign it to the 'sort' macro in Excel file B.
Is there a way for the worksheets to be copied over and the button on each worksheet to be assigned to the macro in the destination file, not the original file?
Thanks for your help!