Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Verify if sheet name still exist | Excel Programming | |||
VBA, Make a new sheet if it doesn't exist | Excel Discussion (Misc queries) | |||
error when sheet doesn't exist... | Excel Programming | |||
Does the sheet exist? | Excel Programming | |||
Does sheet exist? | Excel Programming |