How to acknowledge a message box from VB program?

D

Darwin

When deleting a sheet from VB program a message box pops
up and waits for acknowedgement. How can I
programmatically acknowledge (close) the box?
 
V

Vasant Nanavati

Application.DisplayAlerts = False
Sheet1.Delete
Application.DisplayAlerts = True
 
Top