+ Reply to Thread
Results 1 to 3 of 3

Activate worksheet based on a column value selected from validation list

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2010
    Posts
    27

    Activate worksheet based on a column value selected from validation list

    In the column cells within the B5:B45 range, I am able to click on a validation data listing of the following values: Father, Mother, Son. I have other worksheets created on the same workbook, which have separate forms written for each of the B-column cells. For example, the cell B6 has three separate worksheets (one for Father, one for Mother, one for Son) already written for it and ready to be activated depending on which of the three values is selected. Each B-column cell in this range also has a macro button located in the same row, which I will click on to activate the worksheet corresponding to the value.

    Please Login or Register  to view this content.
    The above macro will take me to the Father9 worksheet if I click on the button. However, I would like for a macro be created that will correctly direct me to one of three worksheets listed above when I click on it. Is it possible to write a conditional macro to also include the "Worksheets("Mother9").Activate" and "Worksheets("Son9").Activate" in it?

    Any help will be greatly appreciated!

  2. #2
    Registered User
    Join Date
    06-26-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Activate worksheet based on a column value selected from validation list

    I just figured out the following macro, which enables me to activate the correct worksheet based on the value entered in the B5 excel cell.


    Please Login or Register  to view this content.
    The problem, however, is that I have a column range of B5:B45. This means I must duplicate 39 more macros for cells B6 through B45, in addition to the creation of 117 more worksheets on the same workbook.

    Is there a single macro that can perform within this B5:B45 range and be able to automatically copy the corresponding RefRev5 or Trie5 worksheets whenever a new entry is made in the B-column cells? I am afraid that having so many worksheets on this workbook will slow things way down. Sure would be awesome if someone can help create this macro!

  3. #3
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Activate worksheet based on a column value selected from validation list

    Cross-post from here http://www.ozgrid.com/forum/showthread.php?t=183310
    Last edited by fredlo2010; 10-11-2013 at 11:17 PM. Reason: Cross post

+ 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. Replies: 28
    Last Post: 08-15-2013, 09:38 AM
  2. Macro/VBA to populate information based on date selected from data validation list
    By anonDymous in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2013, 11:03 AM
  3. Autopopulate cell based on info selected in Data Validation list
    By mintymike in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2012, 12:42 AM
  4. [SOLVED] Creating a grocery list in a new worksheet based on selected items in a master list
    By jacolli4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2012, 07:53 AM
  5. activate or deactivate a cell based on the option selected in validation list
    By techfutura in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-15-2008, 06:55 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