LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.misc
Norman Jones
 
Posts: n/a
Default converting data in colums to rows

Hi Evad,

Try:

'=============
Public Sub Tester001()
Dim WB As Workbook
Dim SH As Worksheet
Dim rng As Range
Dim LRow As Long
Dim i As Long

Application.ScreenUpdating = False

Set WB = ActiveWorkbook '<<==== CHANGE
Set SH = WB.Sheets("Sheet2") '<<==== CHANGE

LRow = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = SH.Range("A2:A" & LRow)

For i = LRow To 2 Step -1
With Cells(i, "A")
.Offset(1).Resize(7).EntireRow.Insert
.Resize(8, 3).Value = .Resize(1, 3).Value
.Offset(0, 3).Resize(8, 1).Value = _
Application.Transpose(.Offset(0, 3).Resize(1, 8))
End With
Next i
SH.Columns("E:K").Delete

Application.ScreenUpdating = True

End Sub
'<<=============


---
Regards,
Norman


"Evad" wrote in message
...
the number of reference columns is actually always 8. there are about
5000
rows of data.

"Norman Jones" wrote:

Hi Evad,

Are there always four ref columns?

The existing data comprises multiple rows?


---
Regards,
Norman



 
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
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
how to split data from 1 row into two rows continuously monkeytrader Excel Worksheet Functions 3 November 30th 05 06:56 PM
Unhiding rows using data validation Mr. G. Excel Worksheet Functions 0 April 7th 05 06:37 PM
inserting rows through external data source [email protected] Excel Discussion (Misc queries) 0 April 5th 05 03:16 AM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM


All times are GMT +1. The time now is 06:41 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"