C
cassidyr1
Hello,
I am using vb6 program (not vba) and using the excel object. I have
template that contains some data sheets that data gets written to. No
all of these get used, and at the end I loop through the sheets to d
some other stuff, and I want to check if any of these redundant sheet
are left, and then delete them. Here is the relevant bit of code i
the loop:-
If InStr(export.Worksheets(i).Name, "DATA_SHEET") Then
Application.DisplayAlerts = False
export.Worksheets(i).Visible = True
export.Worksheets(i).Delete
Application.DisplayAlerts = True
End If
It unhides all of these DATA_SHEET sheets, but doesn't delete them, I'
at a loss as if I put this code into a vba module it deletes them! An
help would be greatly appreciated.
Thanks
Richar
I am using vb6 program (not vba) and using the excel object. I have
template that contains some data sheets that data gets written to. No
all of these get used, and at the end I loop through the sheets to d
some other stuff, and I want to check if any of these redundant sheet
are left, and then delete them. Here is the relevant bit of code i
the loop:-
If InStr(export.Worksheets(i).Name, "DATA_SHEET") Then
Application.DisplayAlerts = False
export.Worksheets(i).Visible = True
export.Worksheets(i).Delete
Application.DisplayAlerts = True
End If
It unhides all of these DATA_SHEET sheets, but doesn't delete them, I'
at a loss as if I put this code into a vba module it deletes them! An
help would be greatly appreciated.
Thanks
Richar