PC Review


Reply
Thread Tools Rate Thread

data arranging

 
 
pmss
Guest
Posts: n/a
 
      23rd Jan 2008
hello

i have a series of data in one coulmn
A1, A2....An , i want to copy these data into another sheet with 10 numbers
of data in first row and from 11 to 20 in second row and so on..... i have
used following macro code:
Dim lastrow As Long, lastcol As long
Dim rng As range, i As long
With worksheets("sheet1")
lastrow = .Cells(rows. Count,1).End(x1Up).Row
For i =1 To lastrow Step 10
Set rng = worksheets("sheet2")_
..Cells(Rows.count,1).End(x1Up)(2)
lastcol = .Cells(i,256). End(x1Toleft).Column
..cells(i,1).Resize(11,lastcol).Copy
rng.Pasespecial x1value,Transpose:= True
Next
End with

It works properly but my question is that after 365 numbers of data, data
start from new row(Data must start from new row after 365 number of data).
One more thing , is it possiblt to link some data from another cell so that
this data repeats everytime after 365 number of data.

Thank you

 
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
re-arranging the data =?Utf-8?B?TGFu?= Microsoft Excel Misc 2 16th Aug 2006 04:52 PM
Arranging data =?Utf-8?B?dmlqYXlh?= Microsoft Excel Programming 3 7th Nov 2005 04:41 PM
Arranging data =?Utf-8?B?UGV0dGVycQ==?= Microsoft Excel Programming 4 12th Oct 2005 07:31 PM
MailMerge - merge with data in Excel - arranging data vertically instead of horizontally paul Microsoft Excel Misc 0 21st Jun 2004 05:05 PM
Re: Re-arranging data Allen Browne Microsoft Access 0 3rd Sep 2003 04:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 PM.