I have a requirement where i will take excel from previous month and do certain actions and paste the data in the existing excel for current month. The same will be used for upcoming months as well.
I don’t want to delete the sheet, as i require column names static.
I need to delete the data and paste the new data, sometimes it has 100 rows and the formula will be in 101row, sometimes the row differs same as the formula row.
As previous month data also be there for ever so u can directly use write range so new data plus previous data both will be written in that sheet
If data will be removed from previous then
For deleting data from that sheet u can use Invoke VBA for delete
Sub Macro1()
Rows("2:30000").Select
Selection.Delete Shift:=xlUp
End Sub