Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Sean Anderson   on Aug 19 In MS Office Category.

  
Question Answered By: Devlan Jones   on Aug 19

Try using the Offset property. Below is a simple example that copies
3 colums to the same sheet with an offset of 4 columns. Hope it
helps.

Sub Copy3Cols()
For RowOffset = 0 To 100
For ColOffset = 0 To 2
Worksheets("Sheet1").Range("A1") _
.Offset(RowOffset, ColOffset + 4) = _
Worksheets("Sheet1").Range("A1") _
.Offset(RowOffset, ColOffset)
Next
Next
End Sub

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on loop thorugh a column and copy to matching workbook Or get search suggestion and latest updates.


Tagged: