Hi
I've created a macro within excel 2010 that adds a new tab called 'Data' into my worksheet. The main analysis of the worksheet is now run from this 'Data' worksheet.
My problem is if the 'Data' worksheeet has been created already, and the Macro that creates it is run again, by accident, I get the 'End' or 'Debug' msg box, and am also thrown into the VBA screen.
Is there a way I can bring up a Msg that says "Data sheet already created" and also then ends the Macro? And without being thrown into the VBA screen?
Thanks.
I've created a macro within excel 2010 that adds a new tab called 'Data' into my worksheet. The main analysis of the worksheet is now run from this 'Data' worksheet.
My problem is if the 'Data' worksheeet has been created already, and the Macro that creates it is run again, by accident, I get the 'End' or 'Debug' msg box, and am also thrown into the VBA screen.
Is there a way I can bring up a Msg that says "Data sheet already created" and also then ends the Macro? And without being thrown into the VBA screen?
Thanks.