ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   clear data in a macro (https://www.excelbanter.com/excel-programming/272500-clear-data-macro.html)

Sharon[_3_]

clear data in a macro
 
I have a macro that runs and copies data from one set of
cells (ie A1:E1) and pastes it at the bottom of a list
(let say its at G20:K20). It does so correctly. Then
when I change the data at A1:E1 and run my macro again,
it should paste it at G21:K21 but instead it pastes it
both at G20:K20 AND G21:K21. Then the next time it does
G20:K20 AND G21:K21 AND G22:K22. What statement do I
need to put in to stop this from happening?

Thanks, Sharon


All times are GMT +1. The time now is 03:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com