Hi
I copy data from a excel copy manually.
I have a macro which clear all data and then paste the data in respective sheets.
I get runtime error 1004 sometimes and sometimes it works fine.
I am not sure why I get error sometimes.
Could that be because the data is not copied or is it because the sheet is already clear with no data.
I copy data from a excel copy manually.
I have a macro which clear all data and then paste the data in respective sheets.
Code:
worksheets("sheet1"). Range("a1").clear
worksheets("sheet1"). Range("a1").paste special
I get runtime error 1004 sometimes and sometimes it works fine.
I am not sure why I get error sometimes.
Could that be because the data is not copied or is it because the sheet is already clear with no data.