+ Reply to Thread
Results 1 to 4 of 4

using VBA to initiate multiple vlookup searches from a register, & export to new worksheet

  1. #1
    Registered User
    Join Date
    10-21-2017
    Location
    Peterbrorough, England
    MS-Off Ver
    2016 Education
    Posts
    4

    using VBA to initiate multiple vlookup searches from a register, & export to new worksheet

    I am building a Context builder for a school I work in. This document uses codes to give an outline of the student using mainly vlookup and concatenate. I am looking to improve it by adding a "populate class print sheet" button in VBA which would take the names from the register, search their data and display it on the CONTEXT_Page before saving the data on a new worksheet and moving to the next name on the register. This way instead of searching each name individually a teacher could click the button and all of the students would have individual pages ready to print.

    I would also like to be able to use a data val. drop down on the Statistics page to show the available codes and definitions from the codes page, so that in order to fill in the codes one needent changes sheets constantly.
    If anyone could help I would be hugely grateful!

    Thanks
    Will
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: using VBA to initiate multiple vlookup searches from a register, & export to new works

    Hi @ SenorMarks

    As your consult has 2 different matters, let's try to go by parts.
    I've prepared a code to solve the second:
    .- validation lists has been created for every column, so you can choose the appropriate selection from the drop down list.
    .- each time you click on a cell with validation list, it pops out on the right side the list of codes and the explanation.
    .- you don't need to clean this list

    If this part is OK, then we can proceed to the multi sheet code.
    Attached Files Attached Files
    Barriers are there for those who don't want to dream

  3. #3
    Registered User
    Join Date
    10-21-2017
    Location
    Peterbrorough, England
    MS-Off Ver
    2016 Education
    Posts
    4

    Re: using VBA to initiate multiple vlookup searches from a register, & export to new works

    Hi @vichopalacios That is exactly what I was looking for for the second part! Brilliant!

    Thanks for this, after that, yes lets get down to the next bit! But amazing thank you so much!
    muchas gracias!
    Last edited by SenorMarks; 10-24-2017 at 06:57 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: using VBA to initiate multiple vlookup searches from a register, & export to new works

    Hi will

    Answering the question you posted ( before editing), I used a Change Selection Event.
    as it is a worksheet event, you MUST place the code in a Worksheet Module, in your case, it is in Statistics sheet Module.

    Now, in the standard module you created, I've changed some instructions and added some more, in order to get the entire list of student's pages ready to print.
    Notice that in all the new sheets, there are no formulas, only values !
    Here you have the book upgraded.

    Now you can use both buttons: one sheet / all sheets

    Vicho Palacios
    Attached Files Attached Files
    Last edited by vichopalacios; 10-25-2017 at 08:50 AM.

+ 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] Worksheet change failing to initiate
    By Si-Phy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2017, 09:17 AM
  2. Formula that searches a check register and reduces a total due
    By Lilbuda in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2015, 11:41 AM
  3. Export worksheet in multiple workbooks to PDF
    By Frank Yang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2015, 02:53 AM
  4. Date Lookup to initiate data populating another worksheet
    By Crhodes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2013, 04:32 PM
  5. Initiate Export to Access from Excel
    By pisteuo in forum Access Tables & Databases
    Replies: 2
    Last Post: 01-11-2012, 07:52 AM
  6. [SOLVED] How do I initiate a macro directly in a worksheet?
    By AMMPro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2006, 06:05 PM
  7. [SOLVED] help with vlookup, wildcards, multiple searches
    By mike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2006, 12:25 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