+ Reply to Thread
Results 1 to 3 of 3

Auto-populate data from all sheets except one

  1. #1
    Registered User
    Join Date
    04-15-2016
    Location
    saint charles, mo
    MS-Off Ver
    2016
    Posts
    4

    Auto-populate data from all sheets except one

    First time using Visual Basic code and so I am not experienced in this area at all.

    I have found this code that does exactly what I want it to do, which is auto-populate all worksheets in the workbook to a combined master worksheet.

    I would now like to add a reference sheet for drop down menus and do not know what to add to this code so that I grab the data from all the sheets except the one reference sheet - which I have named drop down lists.


    Private Sub Worksheet_Activate()
    Dim Sheet As Worksheet
    For Each Sheet In Me.Parent.Sheets
    If Sheet.Name <> Me.Name Then
    If Sheet.Cells(Rows.Count, 1).End(xlUp).Row <> 1 Then
    Sheet.Range(Sheet.Cells(2, 1), Sheet.Cells(Sheet.Cells(Rows.Count, 1).End(xlUp).Row, 10)).Copy Destination:=Me.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)

    End If
    Else
    Me.Range(Cells(2, 1), Cells(Rows.Count, 10)).Clear
    End If
    Next Sheet
    End Sub

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Auto-populate data from all sheets except one

    If I'm understanding you correctly, then changing this line:

    Please Login or Register  to view this content.
    ...to this line:

    Please Login or Register  to view this content.
    ...should do the trick? It should ignore sheets with the name "drop down lists".

  3. #3
    Registered User
    Join Date
    04-15-2016
    Location
    saint charles, mo
    MS-Off Ver
    2016
    Posts
    4

    Re: Auto-populate data from all sheets except one

    This works perfect! Thank you very much. I added yet another sheet for pivot tables and was able to add that as well to the line.

+ 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] Auto-Populate Data to Master Sheet from Other Sheets in Workbook
    By datutt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2015, 05:36 PM
  2. Auto Populate New Sheet Based on Data from Multiple Other Sheets
    By NateD in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 04-28-2015, 03:00 PM
  3. Auto Populate Sheets Based on a Data Tab???
    By dwmilligan in forum Excel General
    Replies: 3
    Last Post: 10-30-2014, 11:02 AM
  4. Auto-Populate Data From Master List to Separate Sheets When Two Criteria's Are Met
    By centibttrfly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2014, 11:18 AM
  5. Auto-populate data from 3 major worksheets to several sheets on a workbook
    By CBarlow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2009, 08:09 PM
  6. Auto Populate Master Sheet with multiple sheets data
    By haley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2009, 04:29 AM
  7. how to auto populate data from multiple sheets to a master
    By Fosachy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2009, 06:15 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