Hi,
I have the code below that deletes all buttons throughout a workbook.
I would like to be able to adapt the code to do the following:
(a) delete all buttons in the workbook except any buttons found in the worksheet named "Export Tabs"
(b) delete all buttons in the workbook except any buttons found that are named "Export1" and 'Export2" in any worksheet
These are independent solutions, so would like two separate codes if possible.
Hope you can help, many thanks.
I have the code below that deletes all buttons throughout a workbook.
I would like to be able to adapt the code to do the following:
(a) delete all buttons in the workbook except any buttons found in the worksheet named "Export Tabs"
(b) delete all buttons in the workbook except any buttons found that are named "Export1" and 'Export2" in any worksheet
These are independent solutions, so would like two separate codes if possible.
Hope you can help, many thanks.
VBA Code:
For Each b In Worksheets
b.Buttons.Delete
Next b