+ Reply to Thread
Results 1 to 10 of 10

Use VBA to Autofill a Sheet by Selecting an Entry

  1. #1
    Forum Contributor
    Join Date
    01-07-2020
    Location
    Columbus, Ohio
    MS-Off Ver
    2019
    Posts
    100

    Question Use VBA to Autofill a Sheet by Selecting an Entry

    Hello! I am not even sure how to best word this question, but I will do my best. I have a sheet with an entry form where users input data and this data is saved on a separate sheet in the same workbook. I want to create something that will allow users to see a list of previous entries (by name or account number) that will allow them to select a certain one that - when selected - will autofill a sheet with all the data from that one entry. I assume this is possible, but I am not sure where to start. Please let me know if you need more clarification and I thank everyone helping in advance!

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    Can you attach an Excel sample file and show-explain the data lay out and final result you want.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    01-07-2020
    Location
    Columbus, Ohio
    MS-Off Ver
    2019
    Posts
    100

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    Sure! If you go to the third sheet (CAP), you will see all the fields for a complete entry. On the first sheet (Entry Form), I want to add a button that users can press that will auto fill fields for a complete entry on the sheet called 'Record' that the user will then be able to print out. Does that make sense? My workbook is attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-07-2020
    Location
    Columbus, Ohio
    MS-Off Ver
    2019
    Posts
    100

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    Hi! Just checking this to see if anyone has any suggestions. Thanks!

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    a button that users can press that will auto fill fields for a complete entry on the sheet called 'Record'
    We need a key (an information ) to search in sheet "CAP" to fill data in sheet "Record"
    How to ask the user for this keys : A message box, a cell in sheet "Entry Form" ...?

  6. #6
    Forum Contributor
    Join Date
    01-07-2020
    Location
    Columbus, Ohio
    MS-Off Ver
    2019
    Posts
    100

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    OK. I will add that and re-upload my sheet. Thanks.

  7. #7
    Forum Contributor
    Join Date
    01-07-2020
    Location
    Columbus, Ohio
    MS-Off Ver
    2019
    Posts
    100

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    If you click on the 'Click Here to Add Corrective Action Plan Information' button on the Entry Form sheet, it will pull up my Entry Form. I added a 'Fill Record Sheet' button that I would like to populate the fields on the Record sheet once a user makes a selection using the 'Find by CAP Name/Reference Number' box and then clicks the 'Fill Record Sheet' button. Does that make sense? The new workbook is attached. Please let me know if you need more information.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    See next code and file attached.
    Note : in sheet Record merged cells have been unmerged

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    01-07-2020
    Location
    Columbus, Ohio
    MS-Off Ver
    2019
    Posts
    100

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    Thank you! Works great!

  10. #10
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Use VBA to Autofill a Sheet by Selecting an Entry

    You're welcome and thx for the rep.

+ 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. Autofill on one sheet based on an entry from another.
    By cyberwolf575 in forum Excel General
    Replies: 1
    Last Post: 01-31-2017, 08:21 AM
  2. Last entry autofill
    By Swaski in forum Excel General
    Replies: 2
    Last Post: 01-26-2017, 06:58 AM
  3. Autofill base on Active Cell and Autofill by row count of another sheet
    By enyak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2014, 10:06 PM
  4. Autofill cells after selecting a validated date
    By rolive in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2014, 04:48 PM
  5. how to autofill data by selecting from drop list?
    By poodelek in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 02:03 PM
  6. Autofill Formula upon data entry
    By rlbush2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2012, 07:01 AM
  7. Replies: 0
    Last Post: 03-02-2005, 12:06 PM

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