If Sheet Exist
Hi,
I'm trying to write a macro that performs a check on whether a Sheet Exists
or not.
If the Sheet named "Data" Exists the user should be prompted for accepting
the Sheet to be deleted.
If not the Sheet should be added to the Excel Workbook. The last part is
easy but checking if the Sheet exists is troublesome. I have tried the
Object.Exists(Key) but recieves an error.
I could probably use the Worksheets("Data").Delete command to simply delete
the Sheet "Data" and then continue adding the Sheet.
But then I would need to drop the Add.Sheet procedure if the user do not
accept that the Sheet gets deleted.
Could anyone help me out here
|