Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default transpose 255+ columns into rows?


Dear All, I have the following excel VBA code, which allows the user t
import a data range of over 255 columns. The macro takes the sequenc
and places it into column1 for each row.
As my extract is merely 1000 rows long, I would like to use th
transpose functionality to transpose the data so that I can use th
65000 rows of dat to show each columns data in my import file.

Is this possible, and if so, help with the code would be gratefull
received.

file import vba below:
Sub TxtImp_Tweeker()
Dim ColumnArray(1 To 100, 1 To 2) As Integer
Dim x As Integer

For x = 1 To 100
ColumnArray(x, 1) = x
ColumnArray(x, 2) = 1
Next x

ChDir "D:\Personal Data\swilson5"
Workbooks.OpenText _
Filename:="D:\Persona
Data\swilson5\Inpatients_Test_for Sean.txt", DataType:=xlDelimited, _
FieldInfo:=ColumnArray
End Sub

Thank

--
scottwilson
-----------------------------------------------------------------------
scottwilsonx's Profile: http://www.excelforum.com/member.php...fo&userid=1112
View this thread: http://www.excelforum.com/showthread.php?threadid=27216

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
TRANSPOSE ROWS TO COLUMNS excelhel_p Excel Discussion (Misc queries) 4 June 13th 09 08:18 AM
Transpose columns to rows using first columns repeated. hn7155 Excel Worksheet Functions 7 February 12th 09 11:50 PM
How do you transpose rows to columns? msn Excel Discussion (Misc queries) 6 September 1st 07 04:00 AM
how do I transpose columns and rows jnix Excel Discussion (Misc queries) 10 December 22nd 04 01:44 PM
Transpose Columns to Rows Rashid Khan Excel Programming 2 June 26th 04 09:49 PM


All times are GMT +1. The time now is 02:27 PM.

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"