+ Reply to Thread
Results 1 to 7 of 7

Multiple tabs created

Hybrid View

gz3s36 Multiple tabs created 04-29-2021, 07:26 AM
BadlySpelledBuoy Re: Multiple tabs created 04-29-2021, 07:41 AM
gz3s36 Re: Multiple tabs created 04-29-2021, 07:44 AM
gz3s36 Re: Multiple tabs created 04-29-2021, 07:49 AM
BadlySpelledBuoy Re: Multiple tabs created 04-29-2021, 07:57 AM
gz3s36 Re: Multiple tabs created 04-29-2021, 08:06 AM
BadlySpelledBuoy Re: Multiple tabs created 04-29-2021, 08:07 AM
  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    345

    Multiple tabs created

    When I download a report from another system I use it does so by limiting the number of rows per tab (50). Therefore I get it with 11 tabs. Is there a way to add tabs 2-11 to tab 1? Or add all 11 to a new tab?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,942

    Re: Multiple tabs created

    You could run a simple VBA script on the file to combine all sheets into sheet 1.

    Would that be of interest?

    BSB

  3. #3
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    345

    Re: Multiple tabs created

    Yes It would. I'll switch it to xslm and attach a file.

  4. #4
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    345

    Re: Multiple tabs created

    Here is the file I get from Maximo.
    Attached Files Attached Files

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,942

    Re: Multiple tabs created

    In the attached I've linked the sub below to a button on sheet 1. When you click it data from all sheets will be consolidated to sheet 1.

    Sub CombineSheets()
        Dim i As Integer
        Dim lr As Long
        
        With ActiveWorkbook
            For i = 2 To .Sheets.Count
                With .Sheets(i)
                    lr = .Cells(Rows.Count, "A").End(xlUp).Row
                    .Range("A4:H" & lr).Copy Sheets(1).Cells(Rows.Count, "A").End(xlUp).Offset(1)
                End With
            Next i
        End With
    End Sub
    You can store the sub in a Personal.xlsb and run it from there so long as the newly downloaded data is the active workbook at the time.

    BSB
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    345

    Re: Multiple tabs created

    That was excellent. Worked exactly as I needed. Thank you.

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,942

    Re: Multiple tabs created

    No problem at all. Happy to help

    Thanks for the feedback.

    BSB

+ 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. Automatic Update of Detail Tabs Created from Summary Tab
    By DTMAVEN in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2019, 06:37 PM
  2. Calculating Sumifs Across Multiple Tabs; allowing Tabs to change or be added/deleted
    By Charles A. Othon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2019, 04:49 PM
  3. How to create a summary of macro created tabs
    By jklovensky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2016, 02:48 PM
  4. [SOLVED] VBA code to merge multiple sheet with multiple tabs into one workbook in different tabs
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2015, 07:42 AM
  5. [SOLVED] How to create macro to copy select data, or row into newly created tabs
    By Dariusd7 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-14-2013, 12:01 PM
  6. Drop Down List created from many tabs
    By usrobinjo in forum Excel General
    Replies: 1
    Last Post: 12-26-2012, 04:33 AM
  7. MACRO that created new tabs is broken
    By lissa843 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2010, 05:44 PM

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