My code deletes all but the first row of my table, tblETS. But when the code runs I get prompted with "Delete entire sheet row?" I've deleted rows like this before but this is the first time it's prompting me.
How can I keep that prompt from popping up?
How can I keep that prompt from popping up?
VBA Code:
Private Sub PrepMyTable()
Dim wsCopy As Worksheet
Dim wsDest As Worksheet
Application.ScreenUpdating = False
Set wsCopy = Worksheets("Data Validation")
Set wsDest = Worksheets("Detailed ETS Estimation")
On Error Resume Next
wsCopy.Visible = xlSheetVisible
wsDest.ListObjects("tblETS").DataBodyRange.Rows.Delete
End Sub