View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Selecting Last Worksheet

Hi Alex

Try this

Sub test()
With ThisWorkbook
If .Sheets.Count 1 Then
Application.DisplayAlerts = False
.Sheets(.Sheets.Count).Delete
Application.DisplayAlerts = True
End If
End With
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Alex" wrote in message ...


How would I select the last worksheet from a workbook?
I'm wanting to delete the last worksheet from a workbook.


--
Jack of all trades... master of none..