Hi, I have a workbook with More than 10 sheets with different name.
I need VBA to delete all nine sheets except one sheet named as "Master Call"
Please note: the number of sheets will be increased or decreased time to time
Hi, I have a workbook with More than 10 sheets with different name.
I need VBA to delete all nine sheets except one sheet named as "Master Call"
Please note: the number of sheets will be increased or decreased time to time
Here!
![]()
Please Login or Register to view this content.
Cheers!
Deep Dave
Duplicate Post Mods!
Sorry..
Last edited by NeedForExcel; 10-13-2015 at 08:14 AM.
Hi there,
The following version will avoid an error message being generated if the "Master Call" worksheet doesn't exist - without this check the routine will try to delete all worksheets and create a "The workbook must contain at least one worksheet" error message:
Just a little added extra!![]()
Please Login or Register to view this content.
Hope this helps - please let me know how you get on.
Regards,
Greg M
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks