Results 1 to 2 of 2

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

Threaded View

  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.

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. 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