I am sure this is super simple but I can't get my code to work and the site I was getting help from mentioned doing it this way but it just bugs. My coding abilities are minor. I had this set up originally with (for example) the Output cell (J8)=Input!M7 but I have a macro on my input tab to insert/delete rows and then it screws up my formulas on the output tab.
I want to copy data from a range on one sheet and paste to another sheet but in a different range. I used the below which works for the first two lines of copy and paste (in blue) because I want the data from the first sheet to the same cells on the second sheet but then the next copy paste I need them to be pasted into a different range and the red is where is bugs out.
Sub Copy_Paste()
Sheets("Input").Range("D7:I42").Copy
Sheets("Output").Paste
Sheets("Input").Range("M7:M42").Copy
Sheets("Output").Range("J8:J43").Paste
End Sub
Is it ok to just list them one after the next? or is there something that needs to go in between.
I want to copy data from a range on one sheet and paste to another sheet but in a different range. I used the below which works for the first two lines of copy and paste (in blue) because I want the data from the first sheet to the same cells on the second sheet but then the next copy paste I need them to be pasted into a different range and the red is where is bugs out.
Sub Copy_Paste()
Sheets("Input").Range("D7:I42").Copy
Sheets("Output").Paste
Sheets("Input").Range("M7:M42").Copy
Sheets("Output").Range("J8:J43").Paste
End Sub
Is it ok to just list them one after the next? or is there something that needs to go in between.