+ Reply to Thread
Results 1 to 3 of 3

Take used cells in column B and add under column A... then on to last used column.

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2003
    Posts
    55

    Take used cells in column B and add under column A... then on to last used column.

    I have a large amount of data spread over an ever changing number of rows and columns.

    I need to cut the data from column B and add under the data already in column A, then go to column C cut the data and add under column A....... then on and on until there is no data left in any other column but A.

    I have started but neither examples will work........ and then how do i tell it how many rows and columns have data in......

    Sub test()
    
    
    Range("B1:B6").Copy
    Sheets(1).Range("A1").End(xlUp).Offset(1, 0).PasteSpecial _
    Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    Range("C1:C6").Copy
    Sheets(1).Range("A1").End(xlUp).Offset(1, 0).PasteSpecial _
    Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    
    End Sub
    Sub test()
    
    
    Range("B1:B6").Cut
    Sheets("Sheet1").Range("A" & .End(xlUp)).Paste
    
    Range("C1:C6").Cut
    Sheets("Sheet1").Range("A1").End(xlUp).Paste
    
    
    End Sub

    HELP......

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Take used cells in column B and add under column A... then on to last used column.

    Try:

    Sub RunMe()
    Dim LR As Long, LC As Long, iCol As Long
    
    LC = Cells(1, Columns.Count).End(xlToLeft).Column
    
    For iCol = 2 To LC
        LR = Cells(Rows.Count, iCol).End(xlUp).Row
        Range(Cells(1, iCol), Cells(LR, iCol)).Cut Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
    Next iCol
    
    End Sub

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Take used cells in column B and add under column A... then on to last used column.

    Yes yes yes - Thank you.

    I don't understand it but thank you...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2012, 08:56 AM
  2. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel General
    Replies: 4
    Last Post: 04-07-2012, 09:14 AM
  3. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel General
    Replies: 5
    Last Post: 04-06-2012, 12:02 PM
  4. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-06-2012, 11:19 AM
  5. [SOLVED] Delete Cell Numbers of Column B From Column A (Column B Small and Column A too big)
    By it_electronics2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2012, 11:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1