Copy n Paste into the next available column

chiswickbridge

Board Regular
Joined
Feb 2, 2013
Messages
130
I need a small VBA to copy and paste from one sheet to another, with a catch...


Sheet1 is the source sheet and has dynamic data ( Numbers ) from d11 to d110.


Sheet2 is the destination sheet and the data needs to be pasted in d11.


Later... new data is input into Sheet1....this new data from Sheet1 must be copied and pasted into Sheet2.e11 ( that is...into a new column everytime )




In short, data from Sheet1 must be copy pasted into the free column of Sheet2...commencing from D11..


Thank you for the same...
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about
Code:
Sub chiswickbridge()
   With Sheets("Sheet2")
      Sheets("sheet1").Range("D11:D110").Copy Cells(11, Columns.Count).End(xlToLeft).Offset(, 1)
   End With
End Sub
 
Upvote 0
Thanks Fluff....My Mistake...The Source is Numerals ...but the result of a Formula...So now the Formula gets pasted...I need Values only
 
Upvote 0
In that case try
Code:
Sub chiswickbridge()
   With Sheets("Sheet2")
      .Cells(11, Columns.Count).End(xlToLeft).Offset(, 1).Resize(100).Value = Sheets("sheet1").Range("D11:D110").Value
   End With
End Sub
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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