+ Reply to Thread
Results 1 to 5 of 5

Xlookup using VBA to copy data from one sheet to another

  1. #1
    Registered User
    Join Date
    10-01-2021
    Location
    Montreal
    MS-Off Ver
    2019
    Posts
    8

    Xlookup using VBA to copy data from one sheet to another

    Hello,

    I would like to enter data in a form ("Form" tab), after which, with a click of a button (vba?) the data for the specific file number would be copied in the "Table" tab.

    So, here are the steps for this process:
    1. I would receive a request from someone by email, will enter the data in the "Table" tab (file #, date file received, and Name).
    2. Before calling the person, in the "Form" tab I will enter the file #. It will populate the information entered in the Table (as to preparing for the call).
    3. I could then conduct the call and fill-out the extra information in the "form" tab (date call made, location, work status).
    4. When I'm done and the form is complete, I would push a button and the new information will be copied in the "Table", with respect to the File # and appropriate columns.

    I attached the excel file for reference. You can see that the files # 124 and 125 are already completed. The files pending are 125 and 126. Once the call is made (126 could be done before, depending on who's available first), the information will be filled in the Table directly. Then ready to move on the next file.
    In an ideal world, once the call is made and the information is copied on the Table, the form would reset with another button, ready for the next call.

    I assume the xlookup function would probably help in the vba code? But I don't know how to use vba for this type of searches.

    Many thanks in advance for your help,
    Nico
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: Xlookup using VBA to copy data from one sheet to another

    try

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

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,599

    Re: Xlookup using VBA to copy data from one sheet to another

    I have given 2 buttons Previous and Next with code. This will select previous number or next number from "Table" sheet.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    10-01-2021
    Location
    Montreal
    MS-Off Ver
    2019
    Posts
    8

    Re: Xlookup using VBA to copy data from one sheet to another

    Yay!! It works!! You are a star!
    Thank you SO SO much, very much appreciated!!!

  5. #5
    Registered User
    Join Date
    10-01-2021
    Location
    Montreal
    MS-Off Ver
    2019
    Posts
    8

    Re: Xlookup using VBA to copy data from one sheet to another

    Thank you very much for your help!

+ 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: 7
    Last Post: 09-16-2022, 09:43 AM
  2. Top three data with xlookup
    By sharaftali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2021, 07:16 AM
  3. Xlookup Formula Won't Recognize Data in Another Sheet
    By Dan1027 in forum Excel General
    Replies: 2
    Last Post: 09-09-2021, 02:06 AM
  4. xlookup function for time sheet
    By erlindafb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-16-2021, 01:54 AM
  5. [SOLVED] XLOOKUP when there are blanks in the data
    By Webbers in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-13-2021, 01:28 PM
  6. Replies: 1
    Last Post: 02-09-2017, 05:36 AM
  7. Replies: 1
    Last Post: 02-09-2017, 05:30 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