Hi Alagu,
Welcome to the forum!!
To select multiple items from a listbox follw these four steps:
1. Open the Visual Basic Editor (Alt + F11) from the workbook where the form resides
2. Click on the relevant listbox
3. From the Properties panel scroll down to Multiselect and ensure the 1 - fmMultiSelectMulti option is selected
4. Assign the following code to the command button to delete the tabs (just change the list box reference to reflect the actual list box name on your form if need be):
'Written by Trebor76
'Visit my website www.excelguru.net.au
Dim intListBoxItem As Integer
With ListBox1 'Change this to reflect the name of the listbox on the userform.
For intListBoxItem = 0 To .ListCount - 1
If .Selected(intListBoxItem) = True Then
Application.DisplayAlerts = False
Sheets(CStr(.List(intListBoxItem))).Delete
Application.DisplayAlerts = True
End If
Next intListBoxItem
End With
Regards,
Robert
Bookmarks