+ Reply to Thread
Results 1 to 2 of 2

Dynamic Table with Drop Down List - Only works on one tab.

Hybrid View

hidden78731 Dynamic Table with Drop Down... 04-19-2012, 05:40 PM
JBeaucaire Re: Dynamic Table with Drop... 04-21-2012, 12:10 AM
  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    16

    Dynamic Table with Drop Down List - Only works on one tab.

    Hello all!

    I have a workbook that has 3 tabs. I would like all 3 tabs to have the identical functionality - where there is a drop down list that creates a dynamic table. The table currently has 1000 rows. I would like to have the option to change the size of the table with the drop down list (the attached file has an example - and it DOES work on 'tab 2') provided on each tab. It is VB code, as seen below:
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$E$3" Then
    Range("A1:A1007").EntireRow.Hidden = False
    Range("A" & Target.Value + 13 & ":A1008").EntireRow.Hidden = True
    End If
    End Sub
    How can I make this work across all three tabs?

    Thank you so much!
    -h
    Attached Files Attached Files
    Last edited by hidden78731; 04-20-2012 at 01:31 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Table with Drop Down List - Only works on one tab.

    Put that code into all 3 sheet modules.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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