Basic Data Transfer in VBA

soelcht

New Member
Joined
Sep 21, 2015
Messages
4
Hi guys,

please help me, I have an easy question in VBA.

What is the most easiest code for this:
I want to transfer data (66 columns and 100 rows) from sheet1 to sheet2 in the 6th row? A1 will move to A6, A2 will move to A6, B1 will move to B6, etc.

Thank you for your help!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
A1 and A2 cant move to the same cell.
A1 will move to A6, A2 will move to A6, B1 will move to B6, etc.

Do you mean A1 to A6, A2 to A7?
 
Upvote 0
Code:
Sub CopyBlock()


    ActiveSheet.UsedRange.Select
    Selection.Copy
    Sheets.Add After:=Sheets(Sheets.Count)
    Range("A6").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
End Sub
 
Upvote 0
Thanks, awesome! How to do it with Dim or ReDim? I am asking, because I only need the code for A1:BN100 array, so actually this should move to sheet2 A6:BN106
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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