How can one trap the event when the user attempts to delete a range and thereby the underlying query on a worksheet? Currently, the default warning message (The range you deleted is associated with a query that retrieves data from an external source. Do you want to delete the query in addition to the range? If you click No, the query will retrieve new data to the worksheet the next time the query is refreshed) appears that is all too easy for a user to click "Yes" on thereby deleting the query. I want to, via code, capture when the user would get this message and delete the data that they are trying to without deleting the underlying query (In effect, answering "No" to the warning FOR them)....anybody know first how to trap this warning and second how to clear the contents of the selected range without deleting the query?
Thanks in advance!
Thanks in advance!