Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting a sheet without the "are you sure" massage 1

Status
Not open for further replies.

IanStrange

Programmer
Sep 16, 2002
36
GB
Hi
I am writting quite a big spread sheet and at one point it creates a new sheet does some stuff then deletes the sheet. But the problem I have is the users of this she are very dim and can not cope with clicking the yes button. So I was wondering if there is a way to delete the sheet without them having to click the yes button.

No man is an island but 6 tied together make quite a good raft.
 
Try

Application.DisplayAlerts := False
Sheet(name).Delete
Application.DisplayAlerts := True

dyarwood
 
That is perfect except for the : befor the =
Thanks you

No man is an island but 6 tied together make quite a good raft.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top