+ Reply to Thread
Results 1 to 6 of 6

Choose random tabs via dropdown

  1. #1
    Registered User
    Join Date
    07-15-2016
    Location
    Germany
    MS-Off Ver
    at Mac version 15.24
    Posts
    34

    Choose random tabs via dropdown

    Hi All,

    I am trying to create a Macro which allows me to choose random Tabs from a Dropdown.

    Explanation:

    I have large number of sheets - Lets say from 1 till 15. What I want on sheet number 1 is to have a dropdown which allows me to choose multiple tabs of my choice. Till now I managed to have a Macro which either shows me All sheets or shows me the selected one. Below is the code:

    Please Login or Register  to view this content.
    What I need is the possibility to choose random multiple tabs at same time for e.g 2,5,6,9 from a dropdown. There is no specific combination.

    Thanks for the help in advance.

    Greetings,
    Kim
    Last edited by kimjaggi88; 11-17-2016 at 09:26 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Choose random tabs via dropdown

    updated with code tags
    Last edited by protonLeah; 11-17-2016 at 03:09 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-15-2016
    Location
    Germany
    MS-Off Ver
    at Mac version 15.24
    Posts
    34

    Re: Choose random tabs via dropdown

    Thanks Ben for pointing out. I will take care of this in future.

  4. #4
    Registered User
    Join Date
    07-15-2016
    Location
    Germany
    MS-Off Ver
    at Mac version 15.24
    Posts
    34

    Re: Choose random tabs via dropdown

    Hi all,

    I am not sure but I think I only need additional line of code which dont hide the selected tabs and keep the selection unhidden.
    Any suggestions.

    Thanks in advance for help"
    Last edited by kimjaggi88; 11-18-2016 at 06:29 AM.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Choose random tabs via dropdown

    Maybe you can adapt these macros:
    initializes a listbox on sheet11 with the names of the sheets in a workbook when it is opened.
    Please Login or Register  to view this content.
    this one hides the sheets, except sheet11 when the book is closed.
    Please Login or Register  to view this content.

    this one is attached to a button on sheet11 that unhides the sheets selected in the listox.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-16-2016
    Location
    NC
    MS-Off Ver
    2007, 2019
    Posts
    86

    Re: Choose random tabs via dropdown

    Here's another project you can look at that has a drop down and buttons.

    Edit as needed.
    Attached Files Attached Files

+ 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] Choose Random Number within range
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-12-2016, 11:49 AM
  2. How to choose random cases and list them
    By drwisher in forum Excel General
    Replies: 1
    Last Post: 04-06-2016, 05:35 PM
  3. [SOLVED] Random Choose Cell of a Row
    By hello_hello in forum Excel General
    Replies: 2
    Last Post: 10-18-2015, 04:56 AM
  4. [SOLVED] Choose random number between given values
    By Hitch75 in forum Excel General
    Replies: 3
    Last Post: 07-02-2015, 06:27 AM
  5. How to choose random sample in dataset with
    By LinnEspensen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2014, 10:51 AM
  6. [SOLVED] If row contains 1(s) then choose random column title
    By sniglet in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-10-2013, 01:09 PM
  7. Choose Random Value Based On List
    By kblaine in forum Excel General
    Replies: 5
    Last Post: 04-20-2011, 02:41 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