We help IT Professionals succeed at work.
Get Started

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

witzph1
witzph1 asked
on
44 Views
Last Modified: 2015-09-30
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?
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE