+ Reply to Thread
Results 1 to 3 of 3

Reset all dropdown selections if tab change?

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Reset all dropdown selections if tab change?

    Hi All -

    I have a front page with a few dynamic dropdowns that basically allow one of two choices and then a large list of secondary choices based on the 1st dropdown choice. This then generates a hyperlink (based on data validation 'indirect') which can be clicked to jump to one of many tabs within the worksheet.

    Because this sheet will be used by many users, is there a way to reset the two dropdown boxes on the front page (either to blank, OR (even better) a message saying something like 'Make selection here...") IF either the hyperlink is clicked or the tab is changed (same difference, but I don't know which is easier to enact!). I have put in some macro that will reset the second box automatically if the first is erased but ideally would like it more automated in nature?

    If this can be done without macro, great, though based on my research I think it has to be macro?

    Thanks,

    Stuart

    PS - as an aside, does anyone know at what point a macro disables the UNDO stack? As some macros do this and some don't as far as I can tell?

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Reset all dropdown selections if tab change?

    YOu can add "Make a selection here.." to your dropdown lists at the top

    then you can put that value in the cells with the dropdown box
    by a simple Range("A1").Value = "make a selection here"

    put this code in the worksheet_followhyperlink or worksheet_deactivate event macro

  3. #3
    Registered User
    Join Date
    04-14-2015
    Location
    Lincoln, UK
    MS-Off Ver
    2013
    Posts
    37

    Re: Reset all dropdown selections if tab change?

    Thanks Roel -

    I've added this to the dropdowns, but can't get the macro to work?

    The first dropdown is in cell B2, and the second in D2. The 'Go' button (i.e. hyperlink) is in E2.

    So on pressing cell E2, which would hyperlink to another tab, that is the point at which I'm looking for both B2 and D2 dropdown selections to reset to blank or the 'Make Selection...'.

    I don't do much Macro work so far to be honest

    Thanks,

    Stuart

+ 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. Merging dropdown selections into 1 cell
    By paul_lowry in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2015, 10:48 AM
  2. Dropdown selections based on adjacent dropdown selected
    By mtvufg8r in forum Excel General
    Replies: 2
    Last Post: 11-07-2014, 12:25 PM
  3. Reset Dependent Dropdown List if Change Occurs
    By zdg8188 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2013, 08:55 AM
  4. Reset Dependent Data Validation selections without macros?
    By Eric09 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2012, 07:52 AM
  5. [SOLVED] Programming Dropdown Box to allow certain selections to change fonts
    By mykie in forum Word Formatting & General
    Replies: 6
    Last Post: 08-01-2012, 06:53 PM
  6. Dropdown list selections
    By Hustad in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-23-2009, 03:18 PM
  7. Tallying dropdown selections
    By curtjer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2009, 01:56 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