Macros in "This Workbook"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Hello all,

I have 6 different Excel workbook templates and they all have identical command bars on which are buttons, 2 of which I've done macros for (to clarify, this I work at a school and each workbook represents a different subject: English, The Arts, etc.) So the object of each workbook is to cut and paste data from each subject onto a "My Class" worksheet page (there's one in each book). What I have done is copied my 'CutPaste' Macro to "This workbook" in each case, but I am still running into trouble where If i have just used the technology workbook, then I go to the Science Workbook, it wants to use the "Technology" cut and paste instead of the Science Cut and Paste.

As I am working out glitches in the code etc and maybe using a test document which I may then delete, if the test doc was the last thing open then it will give me a message saying 'can't find xlTest!CutPaste' or whatever it is.

What is the best way for me to do this?I have actually copied the code to each individual book, but it doesn't seem to matter.

Thanks for any help!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,374
Messages
6,171,722
Members
452,418
Latest member
kennettz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top