Hello,
I have recorded macro, the task which the code has to perform is as below:
I have data in sheet1, I cut the data from sheet1 and paste it in sheet 4, then I delete sheet1, when I delete I get a msg or pop up " Data may exist in sheet selected for deletion, to permanently delete the data, press delete" I press delete.
Now when I am running the data for the second time, I again get the same message,
All that I need is I do not want that message to come up, rather the code should delete it automatically without me pressing the button delete manually
my recorded code:
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Cut
Sheets("Sheet4").Select
Range("A1").Select
ActiveSheet.Paste
Sheets("Sheet1").Select
ActiveWindow.SelectedSheets.Delete
Range("A1").Select
Regards,
Ron
I have recorded macro, the task which the code has to perform is as below:
I have data in sheet1, I cut the data from sheet1 and paste it in sheet 4, then I delete sheet1, when I delete I get a msg or pop up " Data may exist in sheet selected for deletion, to permanently delete the data, press delete" I press delete.
Now when I am running the data for the second time, I again get the same message,
All that I need is I do not want that message to come up, rather the code should delete it automatically without me pressing the button delete manually
my recorded code:
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Cut
Sheets("Sheet4").Select
Range("A1").Select
ActiveSheet.Paste
Sheets("Sheet1").Select
ActiveWindow.SelectedSheets.Delete
Range("A1").Select
Regards,
Ron