+ Reply to Thread
Results 1 to 11 of 11

Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

  1. #1
    Registered User
    Join Date
    07-02-2020
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Lightbulb Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Hello all. I am Kevin. I am new here so not sure if such a query was posted before.
    i am working on a small project to display the results of a quiz program. What i am looking for is a VBA form that would display options to fill in NAME, Select a GROUP from drop down and also a drop down list of the church names. and once that's done the matching result from the MARKS column against all these three values should be displayed in a box on the VBA form itself, while the data sheet remains hidden at all time.

    have attached the spreadsheet. Please help me figure this out.
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Hi Kevin

    Welcome to the Forum...
    Obviously the names that get typed in must match the names in the sheet otherwise not all 3 criteria can be found and no mark will be associated...
    What is the aim of the game...If you type in correct name you get a result...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    As sintek rightly points out, you've not explained what the reason behind wanting to 'hide' things is. If it's for data secutity purposes then Excel is not necessarily the tool for you as it's not particularly secure at all.

    Having said that, attached is a simple form with code written in a way that should be easy to understand and edit.

    Note that any user can access any score. I don't know if that is what you want but if not then you need something a little more complex.

    Let us know if you have any questions.

    BSB
    Attached Files Attached Files

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    If it is as per my post #2 then this is my solution...
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-02-2020
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    This is exactly what i was looking for

    Hiding is just to keep it neat as you have shown in your sample file nothing more. I have 614 such entries in names and 50 in church list, groups are 6. So names and church list in drop down will be a headache or can it have a searchable drop down?

  6. #6
    Registered User
    Join Date
    07-02-2020
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    This is exactly what i wanted. But i have 614 entries Under "name" and 50 in "church name". Is there an option for searchable drop down? else it will be difficult.

  7. #7
    Registered User
    Join Date
    07-02-2020
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Quote Originally Posted by BadlySpelledBuoy View Post
    As sintek rightly points out, you've not explained what the reason behind wanting to 'hide' things is. If it's for data secutity purposes then Excel is not necessarily the tool for you as it's not particularly secure at all.

    Having said that, attached is a simple form with code written in a way that should be easy to understand and edit.

    Note that any user can access any score. I don't know if that is what you want but if not then you need something a little more complex.

    Let us know if you have any questions.

    BSB


    This is exactly what i was looking for

    Hiding is just to keep it neat as you have shown in your sample file nothing more. I have 614 such entries in names and 50 in church list, groups are 6. So names and church list in drop down will be a headache or can it have a searchable drop down?

  8. #8
    Registered User
    Join Date
    07-02-2020
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Quote Originally Posted by sintek View Post
    If it is as per my post #2 then this is my solution...
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Your sample file i cant see the form. It opens to the data sheet...

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Your sample file i cant see the form. It opens to the data sheet...
    Enable macros...

    Anyway was just to show use of form...Can just add snippet to hide sheet prior...

    Anyway seems you have a solution from BSB

  10. #10
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Quote Originally Posted by kevin098 View Post
    I have 614 such entries in names and 50 in church list, groups are 6. So names and church list in drop down will be a headache or can it have a searchable drop down?
    I had deliberately made it so the Name drop down is dependent on the Group drop down, i.e. only the names that pertain to that group will show when you change it, and the same for the Church drop down based on the Name drop down, but I understand the lists could still be long.
    In the atached version I've changed it so when you start typing a name it will jump to that in the list.

    Hopefully that's what you meant.

    BSB
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-02-2020
    Location
    India
    MS-Off Ver
    2016
    Posts
    6

    Re: Search a data sheet and the result to be displayed in a VBA form with data sheet hiden

    Quote Originally Posted by BadlySpelledBuoy View Post
    I had deliberately made it so the Name drop down is dependent on the Group drop down, i.e. only the names that pertain to that group will show when you change it, and the same for the Church drop down based on the Name drop down, but I understand the lists could still be long.
    In the atached version I've changed it so when you start typing a name it will jump to that in the list.

    Hopefully that's what you meant.

    BSB
    Yes sir. This is good... If i may bother u with one more concern. Is it possible to make all the three input fields independent of each other? So that when only the right combination in a row of the three fields are entered then alone the mark in that row will be displayed.... Doing that would reduce each and every person looking up all the marks. Only if it is not too complicated to achieve... Thanks a lot.

+ 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] Advanced Filtering Data Pulled Form Multiple Worksheets And Displayed On One Sheet
    By disepyon in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-16-2017, 09:37 AM
  2. Form produce search result on preview webbrouser
    By savyback in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2013, 04:19 PM
  3. how to use VBA to search and return search result in the user form
    By pearlynie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2013, 07:58 AM
  4. pls hlp: search from 2 worksheets, result displayed on userform
    By hrh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2012, 08:57 PM
  5. Need a help to create a search result form
    By naaf2012 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2012, 01:41 AM
  6. How to use Form to Find and Display Search Result
    By xinzie in forum Excel General
    Replies: 1
    Last Post: 03-28-2009, 05:46 AM

Tags for this Thread

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