How to duplicate worksheet with macros and have macros work in new sheet

I have an Excel workbook with a worksheet that has 3 macro buttons on it, each which sorts and filters a table on the worksheet in a different way.

I would like to copy the worksheet with macro buttons to a new worksheet and have the buttons work on the new one.  When I copy the worksheet now, the macro buttons on the new worksheet bomb out.  I believe because the macro buttons are trying to operate a macro hard coded for another worksheet.

Is there a way to change the macros of the copied sheet easily so they work correctly?  Or should I have created the macros differently so they aren't looking for a specific worksheet?
witzph1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
In order to make the changes which you are requesting for..Need to see the code behind the buttons which get executed..then only will be able to help on this..

Either please provide the code or the workbook where you face this problem as it will become faster to help you accordingly..

Saurabh...
0
witzph1Author Commented:
Here it is.
Template.xlsm
0
Saurabh Singh TeotiaCommented:
Their you go..Your revised workbook..Post necessary changes..

Saurabh...
Template.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
witzph1Author Commented:
That is really great!  Thank you so much!
0
Saurabh Singh TeotiaCommented:
You are welcome..Always happy to help.. :-)

Saurabh...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.