Copy data and paste into next available column

Mykiej23

New Member
Joined
Jun 2, 2016
Messages
22
Hi all,

I am trying to set up this spreadsheet but can't quite get it to work. I want all the data that is in A6:A33 to be pasted into the next available cell in the worksheet Tracker which starts at C6.

At the moment this is what I have and it works for the column in C6 but I can't get it to ignore whats in there and paste into D6 the next time.

Sub OverdueTestsData()

ActiveSheet.Range("A6:A33").Copy
Application.Goto Sheets("Tracker").Range("C6").End(xlToLeft).Offset(, 2)
ActiveSheet.Paste Link:=True
Application.CutCopyMode = False

End Sub

Any help would be appreciated. Thank you!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
How about
Code:
Sub OverdueTestsData()


ActiveSheet.Range("A6:A33").Copy
Application.Goto Sheets("Tracker").Cells(6, Columns.Count).End(xlToLeft).Offset(, 1)
ActiveSheet.Paste Link:=True
Application.CutCopyMode = False

End Sub
 
Upvote 0
How about
Code:
Sub OverdueTestsData()


ActiveSheet.Range("A6:A33").Copy
Application.Goto Sheets("Tracker").Cells(6, Columns.Count).End(xlToLeft).Offset(, 1)
ActiveSheet.Paste Link:=True
Application.CutCopyMode = False

End Sub

That worked great! Thank you so much! :D
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top