copy range of cells from column, paste and offset

Status
Not open for further replies.

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You already asked this question the other day. Please use that thread.
 
Upvote 0
sorry i have reworded it bcz i did not get response so how do i use the other thread with new post, do i delete this one and post again to old thread.
 
Upvote 0
There are 4 responses since you last answered to the thread. So in what was did you not get a response? It seems that you ignored the responses to me.
 
Upvote 0
apologies it is my mistake, i don't do this purposely i am just trying to get help, sorry if i did not use it in the right way, thank you for your reply last week but i am having trouble with the With sheets ("sheet1")


Dim arr, arr2, i As Long, j As Long

With Sheets("Sheet1")
arr = .Range("AF4:AF763")
ReDim arr2(1 To UBound(arr) * 26)
For i = 1 To UBound(arr, 1)
For j = 1 To 6
arr2((i - 1) * 26 + j) = arr(i, 1)
Next
Next
.Range("AK4:AK19763") = Application.Transpose(arr2)
End With</pre>
 
Upvote 0
You have to change that to the appropriate sheet name for your workbook where the range in question is housed.
 
Upvote 0
when i try to run it it stops on With sheetw ("sheet1") and comes up with the message compile error invalid outside procedure
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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