LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Select cells copy/paste and repeat x times

Cheers for the insight into the structure

This should do the trick

:======================

Sub CopyData()

i = 1: j = 1
Sheets("Home").Select
[A2].Select

Do Until IsEmpty(ActiveCell)

Do Until ActiveCell i Or IsEmpty(ActiveCell)
Sheets("Destination").Cells(j + 1, i + 1) = _
ActiveCell.Offset(0, 2).Value
j = j + 1
ActiveCell.Offset(1, 0).Select
Loop

i = i + 1: j = 1
Loop

End Sub

:==============================

http://www.excel-ant.co.uk



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy a worksheet to new one with repeat rows 5 times mfn Excel Discussion (Misc queries) 0 February 13th 08 11:33 AM
repeat cell values into other cells x times Abi L Excel Discussion (Misc queries) 0 April 17th 07 12:02 PM
Select a row, copy and repeat on the next row Jason L Excel Programming 0 August 17th 04 11:13 PM
Select Visible Cells only copy & Paste Kim Excel Programming 2 August 10th 04 03:18 AM
Simple (?) Macro Assistance- Select, Insert, Paste, Rinse, Repeat Pete_CSC Excel Programming 4 June 15th 04 05:09 PM


All times are GMT +1. The time now is 07:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"