Hi guys Im creating a macro with the macro recorder on excel what I want this macro to do is to take the values from a row in a pivot table and paste it in a list that Im using to track the changes of this pivot table values through time like an entry.
the code the recorder gave was the below one
Range("U19:Y19").Select
Selection.Copy
Range("E18:I18").Select
ActiveSheet.Paste
Range("U20:Y20").Select
Application.CutCopyMode = False
Selection.Copy
Range("N18:R18").Select
ActiveSheet.Paste
As you can see is a simple copy a range of cells and paste it somewhere else however what I want to happen is that every time I run this macro this list gets filled on the next available row so if I run it the first time it pastes the information in E18:I18 and N18:R18 but if I run it the second time it pastes the information in E19:I19 and N19:R19 and so on and so forth on the subsequent rows each time I run the macro, Im starting with this macro thing and Im still catching up with how to write code
Thanks a lot