Search notes:

Excel VBA: Worksheet.Delete

The delete method of a worksheet object deletes the worksheet
One might want to set application.displayAlerts to false before deleting a worksheet so that the user is not prompted to confirm the deletion (Message Box with «Microsoft Excel will permantently delete shis sheet. Do you want to continue?»):
dim ws as worksheet : set ws = sheets("fooBarBaz")
dim da as boolean   : da = application.displayAlerts
application.displayAlerts = false
ws.delete
application.displayAlerts = da

See also

deleteWorksheet() in ExcelHelpers.
The keyboard shortcut alt+h -> d -> s -> enter deletes the current worksheet.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1740080300, '18.218.92.89', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Excel/Object-Model/Worksheet/delete(47): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78