+ Reply to Thread
Results 1 to 4 of 4

default drop down box

  1. #1
    Registered User
    Join Date
    06-24-2010
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    6

    default drop down box

    Hi everybody,

    I have a questionnaire that has yes/no drop down boxes.

    The second question is activated by the response to the first question, so in affect I don't want the respondents to see the second question before the first is answered.

    Therefore I was wondering how I would default the excel file to only show only the first question, with the drop down box being blank.


    Any help would be appreciated.

    Thanks
    Damian

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: default drop down box

    You need to be more explicit about the kind of drop down box. Are you using dependent list via Data Validation or a combo box from the Forms or Active-X controls?

    how I would default the excel file to only show only the first question, with the drop down box being blank
    You would need to use VBA in the workbook_open event to clear the contents of all cells except the first question drop down.

    Basic idea:
    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    06-24-2010
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: default drop down box

    Thanks,

    I am using a drop down box via data validation. Will this VBA you have supplied work?

    Cheers.

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: default drop down box

    Yes. Just adjust the sheet and range reference.

    Note: The sheet name in the above code is not the worksheet name (as shown the sheet tab), but the VBA code name for the sheet (name shown in brackets in the VB Project Explorer window).

    This code MUST go into the workbook module. Press Ctrl + F11 keys to open the VB editor, double-click the "Thisworkbook" module and paste in the above code.

+ 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