Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default data arranging

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
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
re-arranging the data Lan Excel Discussion (Misc queries) 2 August 16th 06 04:52 PM
need a macro for arranging the data yagna Excel Programming 3 April 1st 06 01:56 PM
Arranging Excel Data Matt M Excel Discussion (Misc queries) 1 January 19th 06 03:43 AM
Arranging data vijaya Excel Programming 3 November 7th 05 04:41 PM
Arranging data Petterq Excel Programming 4 October 12th 05 07:31 PM


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

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

About Us

"It's about Microsoft Excel"