PC Review


Reply
Thread Tools Rate Thread

copy data down

 
 
=?Utf-8?B?YW5kcmVzZzE5NzU=?=
Guest
Posts: n/a
 
      2nd Oct 2006
column a b c

row 9 trns bill accounts payable
row 10 spl bill load ap data
row 11 endtrns

how can i create a macro that copy these data down until row 10000
it should look like these after:

row 9 trns bill accounts payable
row 10 spl bill load ap data
row 11 endtrns
row 12 trns bill accounts payable
row 13 spl bill load ap data
row 14 endtrns

and so on,

thanks a lot for your help
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      2nd Oct 2006
You can try this one with the data in Sheet1

Sub test2()
Dim LastRow As Long
With Worksheets("Sheet1")
LastRow = 10000
.Range("A9:C11").AutoFill Destination:=.Range("A9:C" & LastRow) _
, Type:=xlFillDefault
End With
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"andresg1975" <(E-Mail Removed)> wrote in message news:75E964F1-51B2-4C01-A4C4-(E-Mail Removed)...
> column a b c
>
> row 9 trns bill accounts payable
> row 10 spl bill load ap data
> row 11 endtrns
>
> how can i create a macro that copy these data down until row 10000
> it should look like these after:
>
> row 9 trns bill accounts payable
> row 10 spl bill load ap data
> row 11 endtrns
> row 12 trns bill accounts payable
> row 13 spl bill load ap data
> row 14 endtrns
>
> and so on,
>
> thanks a lot for your help



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use data fed in adjacent cells to sort and copy the data to spec named range sri_gs Microsoft Excel Discussion 0 12th Apr 2010 02:07 PM
Pivot Table - Copy All Data from a Specific Variable Data Field troy.litwiler@gmail.com Microsoft Excel Discussion 1 8th Feb 2007 04:36 AM
Copy function does not copy data in subforms =?Utf-8?B?Q1c=?= Microsoft Access Forms 2 17th Nov 2006 02:25 PM
Copy data into cells until changes trigger new copy =?Utf-8?B?bWRlYW5kYQ==?= Microsoft Excel Programming 1 25th Apr 2005 05:40 AM
Copy Child DataTable?? Copy a DataColumn?? System.Data is frustrating... Cip Microsoft ADO .NET 1 27th Feb 2004 05:57 AM


Features
 

Advertising
 

Newsgroups
 


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