
Originally Posted by
BALA1983
I don't wanna to delete all the sheets. my requirement is to delete specified number of sheets. But in my coding if i put more number of sheet names (40 - 50 Sheetnames), then it will automatically come down to second line. There i am finding difficulty.
To be very simple i want to delete 500 sheets. where excel book has 1000 sheets.
Pls help me in this regard
What do you mean by 'come down to second line' - are you having problems with the length of the array wrapping in the VBE?
If this is the issue, you can declare your array as follows:
Might it not be easier to maintain the list of sheet names for deletion in a worksheet range, and loop through each cell in that range?
Bookmarks