Hi,
There is a list of names on sheet 1, in cells A9:A1048576. Each cell consists of one name. Each name has a correspondent sheet in the workbook and the name of this sheet is the same as a value of cell from the list in sheet1. Basically, there is a sheet for each name from the list on sheet 1.
Now. Each of these sheet has an button on it. When button is clicked, active sheet is deleted.
Sub DeleteSheet()
ActiveSheet.Delete
End Sub
So, sheet is gone but a name of this sheet still exists on the list on sheet1.
How to make it, to delete a sheet and at the same time find a cells within A9:A1048576 in sheet1 with a value of "name of sheet to be deleted" and delete an entire row of this cell.
Thanks in advance
There is a list of names on sheet 1, in cells A9:A1048576. Each cell consists of one name. Each name has a correspondent sheet in the workbook and the name of this sheet is the same as a value of cell from the list in sheet1. Basically, there is a sheet for each name from the list on sheet 1.
Now. Each of these sheet has an button on it. When button is clicked, active sheet is deleted.
Sub DeleteSheet()
ActiveSheet.Delete
End Sub
So, sheet is gone but a name of this sheet still exists on the list on sheet1.
How to make it, to delete a sheet and at the same time find a cells within A9:A1048576 in sheet1 with a value of "name of sheet to be deleted" and delete an entire row of this cell.
Thanks in advance