Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default Convert Columns to Rows

Please follow following steps
1.Right click on the toolbar click Control Box
2.From the control box that appears on your screen, select a command button
and draw it to your sheet
3.Double click the command button and write following codes in code window
Now paste following codes
#
Private Sub CommandButton1_Click()
Dim row As Integer, col As Integer

row = 1
col = 1


Dim rowinsheet2 As Integer, colinsheet2 As Integer

rowinsheet2 = 1
For col = 1 To 3
row = 1
colinsheet2 = 1

While Sheet1.Cells(row, col).Value < ""


Sheet2.Cells(rowinsheet2, colinsheet2).Value = Sheet1.Cells(row,
col).Value

colinsheet2 = colinsheet2 + 1

row = row + 1

Wend
rowinsheet2 = rowinsheet2 + 1
Next
End Sub
#

Have a nice time€¦.


Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200902/1

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
Convert rows to columns David Excel Discussion (Misc queries) 5 November 22nd 08 02:58 PM
Convert rows to columns lucrezia Excel Worksheet Functions 0 June 28th 07 06:36 PM
to convert columns to rows having mulit independent group columns Quacy Excel Worksheet Functions 1 August 22nd 06 11:20 PM
Convert rows to Columns Ed Excel Worksheet Functions 7 August 3rd 06 10:14 PM
Convert rows to columns Geno Excel Worksheet Functions 0 July 6th 06 04:41 PM


All times are GMT +1. The time now is 06:54 PM.

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"