VBA Copy and Rename 2 Worksheets with current date but different shifts.

Jeff S

New Member
Joined
Apr 6, 2023
Messages
5
Office Version
  1. 365
  2. 2003 or older
Platform
  1. Windows
  2. Web
Hello,
Having issues with 1 button macro on a menu worksheet that copies 2 separate worksheets and places a cell value on them.
Example:
1680782718694.png

It would be executed from Staff Summary Sheet and copy then rename the Working Sheets.
I get it to copy but I somehow mess up with the renaming part.
 
That did it, now I repeat for Blue and that should fix it. I would never have remembered that. Thanks Joe. I tried so many ways to make this work and remember doing it years ago. Old age I guess. Your a life saver. Thank you!

The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,215,006
Messages
6,122,665
Members
449,091
Latest member
peppernaut

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