+ Reply to Thread
Results 1 to 4 of 4

Searchable archive

  1. #1
    shadesofsisyphus
    Guest

    Searchable archive


    I am trying to create a searchable database with about three different
    search options. i.e. choose option A to allow options d,e,f to become
    available, Option B allows g,h,i, etc. I wasnt sure how to do this
    using excel, and I was hoping someone would be an excel wizard that
    could help me. I was thinking of using a userform and try it that way.
    Any ideas?


    --
    shadesofsisyphus

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    Your suggestion of a user form is a good one. You could set the change event of your option A radio button to enable the radio buttons for options D, E & F.

    Something like

    Private Sub OptionButton1_Change()
    If OptionButton1.Value Then OptionButton2.Enabled = True Else OptionButton2.Enabled = False
    End Sub

    Remember to put the option buttons in different frames
    Martin

  3. #3
    shadesofsisyphus
    Guest

    Re: Searchable archive


    I suppose a little more depth is required... I need to know how to
    reference the spreadsheet data from within a userform. Then have the
    search conditions insert the retrieved data from sheet1 and insert it
    into sheet 2, kind of... Any ideas?

    mrice Wrote:
    > Your suggestion of a user form is a good one. You could set the change
    > event of your option A radio button to enable the radio buttons for
    > options D, E & F.
    >
    > Something like
    >
    > Private Sub OptionButton1_Change()
    > If OptionButton1.Value Then OptionButton2.Enabled = True Else
    > OptionButton2.Enabled = False
    > End Sub
    >
    > Remember to put the option buttons in different frames
    >
    >
    > --
    > mrice
    >
    > Research Scientist with many years of spreadsheet development
    > experience
    > ------------------------------------------------------------------------
    > mrice's Profile:
    > http://www.excelforum.com/member.php...o&userid=10931
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=540387



    --
    shadesofsisyphus

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    If I understand you correctly, I would suggest that you call the user form from within a macro. The form will need an OK button to confirm the selection. The click macro for this button will need to use Me.Hide to make the form disappear. In your main macro you can then test for the values of the various option buttons and move data accordingly.

+ 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