Pop Up Message when User Copies or Creates New Sheet

christopher.pratt

New Member
Joined
Jan 12, 2009
Messages
24
I need a macro that will create a popup message any time 1) a new worksheet is created and 2) a worksheet is copied. The contents of the message left aside (use "message" as our example message) could someone help me with a simple code for this?
 
Last edited:
there is a small bug in the "sheet copied" event code. the logic of the code is follows
when you copy a sheet for eample sheet1 the copied sheet is named sheet1(2) and that is the active sheet.
I have given a condition that if the active sheet name contains a bracket it will give message box.
suppose you have already copied a sheet and got the message and again somehow activate that sheet in will popup the message.
one way to avoid this when you copy the sheet and the mesage comes up, immediately you change the name for e.g. sheet1(2) into some other name without any bracket.
 
Upvote 0

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