+ Reply to Thread
Results 1 to 4 of 4

vba for selecting names one by one from the drop down list (data validation)

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    2

    vba for selecting names one by one from the drop down list (data validation)

    I created a Report Card using excel for my students' to see his/her marks after each exam. The Excel file contains three sheets. First sheet contains the template of Report Card, Second sheet contains student's personal data (like Admission No, Class-Div, Roll No etc) and the Third sheet contains student's marks and grades. In the first sheet, in front of the ‘Name of the Student’ title/cell, I gave a drop down list (using data validation) i.e. cell H12. In front of next each title of the cell I gave VLOOKUP function. So when I select a student name from the drop down list, then the entire data pertaining to that particular student appears in front of each title. Then I save the file in pdf format. As there are 45 students in one division and we have four divisions of such, more time is needed to generate the Report Card of each student.

    How can I select the students' name (one by one) from the drop down list using vba? Is there any code for selecting names (auto select) one by one from the drop down list?

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: vba for selecting names one by one from the drop down list (data validation)

    If you have a list of students on one sheet then you could bypass the drop-down and loop through the list.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: vba for selecting names one by one from the drop down list (data validation)

    i attached my experiment.
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: vba for selecting names one by one from the drop down list (data validation)

    Hi jinoob

    Welcome to the Forum!

    This Code will cycle through all the Names and insert it into Cell H12 of Marks Sheet.
    Please Login or Register  to view this content.
    Where do you wish the PDF files to be saved? If you wish them to be saved to the same Folder as the Workbook that's running the Code try this
    Please Login or Register  to view this content.
    Last edited by jaslake; 10-01-2013 at 04:49 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Replies: 2
    Last Post: 08-01-2013, 07:36 AM
  2. Replies: 4
    Last Post: 05-17-2012, 04:40 PM
  3. Replies: 3
    Last Post: 04-16-2012, 10:14 PM
  4. Change formula when selecting different names from drop down list
    By processchip in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2011, 10:28 AM
  5. Run by selecting a drop-down menu from data validation
    By simmo86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2010, 11:59 AM

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