Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default How to arrange multiple cell value into single column

For Example:
Before
A B C D
1 Button1 Button2
2 Button3 Button4
3 Button5 Button6
Button7

After
A
1 Button1
2 Button2
3 Button3
4 Button4
5 Button5
6 Button6
7 Button7

Pls help in VBA code how to do?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default How to arrange multiple cell value into single column

try:
Sub test()
Dim mycell As Range
Dim k As ingeter
Application.ScreenUpdating = False
On Error GoTo handle:
For Each mycell In ActiveSheet.UsedRange
If Not IsEmpty(mycell) Then
k = k + 1
mycell.Copy Cells(k, 5)
End If
Next mycell
handle:
Application.ScreenUpdating = True
End Sub

--
Regards,

Sebation.G
"geniusideas"
groups.com...
For Example:
Before
A B C D
1 Button1 Button2
2 Button3 Button4
3 Button5 Button6
Button7

After
A
1 Button1
2 Button2
3 Button3
4 Button4
5 Button5
6 Button6
7 Button7

Pls help in VBA code how to do?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default How to arrange multiple cell value into single column

sorry ,write a wrong word
Dim k As ingeter
shd change
Dim k as integer
"geniusideas"
groups.com...
For Example:
Before
A B C D
1 Button1 Button2
2 Button3 Button4
3 Button5 Button6
Button7

After
A
1 Button1
2 Button2
3 Button3
4 Button4
5 Button5
6 Button6
7 Button7

Pls help in VBA code how to do?



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
Splitting Text from single cell in column across multiple Columns Harold Excel Worksheet Functions 3 March 14th 10 11:06 AM
Multiple Cells/rows in Column selected when a single cell is click Mick Excel Discussion (Misc queries) 0 October 10th 08 02:05 PM
HELP!! ARRANGE MULTIPLE ROWS IN A SINGLE ROW sajay Excel Worksheet Functions 4 December 26th 06 12:58 PM
Add single fuction to end of multiple cell column Mead1 Excel Discussion (Misc queries) 2 October 17th 06 04:21 PM


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