Results 1 to 5 of 5

VBA to combine referenced rows into one sheet

Threaded View

  1. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hello, try this !


    According to the attachment a starter VBA demonstration to paste only to the Combined worksheet module :

    PHP Code: 
    Sub Demo1()
            
    UsedRange.Offset(1).ClearContents
            R
    & = 2
        
    For S& = Index 1 To Worksheets.Count
            T
    & = Worksheets(S).[A1].CurrentRegion.Rows.Count 1
         
    If T Then
            Rows
    (R).Resize(T16).Formula "='" Worksheets(S).Name "'!A2"
            
    T
         End 
    If
        
    Next
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 10-15-2023 at 03:49 AM. Reason: simplification ...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Combine Values from Duplicate References
    By hzrdc2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-19-2017, 12:58 PM
  2. How to combine many rows into one on a separate sheet
    By katieshields in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2017, 08:49 AM
  3. Excel VBA combine common rows based of two columns place into another sheet
    By jurjevics in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2016, 02:17 PM
  4. [SOLVED] Combine Selected Columns & Rows Informations from Multiple Excel Sheets to one sheet
    By akherief in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2016, 07:44 AM
  5. Replies: 2
    Last Post: 06-11-2014, 11:14 AM
  6. Combine Duplicate Rows and Combine Data in Rows
    By cherylmcgk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2013, 12:04 PM
  7. How to create Read/Write VBA Userform that references variable cells/rows in a sheet?
    By Sivart9876 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2012, 10:58 AM

Tags for this Thread

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