+ Reply to Thread
Results 1 to 2 of 2

referencing an HLOOKUP on another Workbook, Pasting Results on Active Workbook

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Red face referencing an HLOOKUP on another Workbook, Pasting Results on Active Workbook

    Hi All,

    I have a very hard macro that I am trying to figure out and I am breaking my head over it. I am not an expert at VBA. If someone can please help I would appreciate that so much. I will try my best to explain what I was assigned to do.

    I have one Excel file, let's call it my "Main File" and another worksheet that will be saved in the same filepath but not opened when I am running this macro. Let's call this my "Data File".
    The Main File looks like this...
    002- DASHBOARD.PNG

    The Data File looks like this...
    002- DATASHEET.PNG

    On the main file there are a lot of different columns with different information. What I want is to write a HLOOKUP or any fucntion you may know, that if there is a match in the "Code" column in the Main File with the Data File (I.e. there codes match up) than I need it to retrieve the "Contract Worker" name and paste it in column L of that coresponding row on the Main File.

    The table array for the vlookup is Range("A1:AK1345")
    The closed Data File path is "C:\Users\673157897\Documents\Pro Fees Dash Board\Copy of RBC_CWM_DHR_Details_Report___Thomson__A (Preview).xls"


    Also I don't want the Data file to stay open, I want it to close when macro is done.

    To recap: I need it to scan the Data File 'code' column and if it matches with any codes on the Main File, simply paste Contract Worker name in deisred place (column L) of that row, and close the DataFile.


    Please help, I am on the verge of lossing it. I appreciate you taking your time for this your a great person!
    Last edited by lougs7; 09-25-2015 at 09:51 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,636

    Re: Complicated Macro. Really would appreciate someones help. invovles VLOOKUP

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    also post a workbook:

    (How to) Attach a Workbook
    (please do not post pictures or links to worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

+ 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] Complicated VLOOKUP Question
    By McStagger in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-14-2015, 04:38 PM
  2. [SOLVED] Complicated vlookup ?? HELP!
    By gillas01 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-07-2014, 10:13 AM
  3. Vlookup but a little more complicated
    By dinker454 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2013, 04:20 PM
  4. Replies: 3
    Last Post: 09-21-2011, 06:45 AM
  5. Vlookup, but more complicated.
    By BBJAY in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 02-16-2009, 02:39 PM
  6. [SOLVED] How do I write the formula to calculate someones time worked
    By deusy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2005, 04:55 PM
  7. How do I find someones age in whole numbers?
    By BrianHall222 in forum Excel General
    Replies: 5
    Last Post: 09-08-2005, 03:05 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