Closed Thread
Results 1 to 2 of 2

Noob-Easy Stuff, Problem with syntax w/ VBA referencing another worksheet

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

    Noob-Easy Stuff, Problem with syntax w/ VBA referencing another worksheet

    Hi guys! I don't know the proper syntax to do this

    On my active workbook I am writting code, in the code I use the HLOOKUP function that looks up a value in another closed workbook, how would you do this, using variables assigned to the file it is searching would be preferred

    current file: C:\Users\Suhail\Documents\work\Pro Fee Dash Board\Dash Board Shell.xlsm
    retrieve data from file: C:\Users\Suhail\Documents\work\Pro Fee Dash Board\testdata.xls

    for the HLOOKUP(lookup_value,table_array,col_index_num,[range_lookup})
    I want lookupvalue to be my Current WorkBook>Sheet = "Data">Range A3
    I want the Table array to be from the Retrieve data file>Sheet = "Sheet1">Range $A$2:$AK$1345
    And I want it to paste the values the next column over from the look up value so I think = 2


    I am not sure the quotations and syntax when referencing another workbook.worksheet inside a formula so I get errors....If anyone knows proper syntax to use please help

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,925

    Re: Noob-Easy Stuff, Problem with syntax w/ VBA referencing another worksheet

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Looking for help adding stuff (noob)
    By Caulnian in forum Excel General
    Replies: 3
    Last Post: 05-21-2015, 01:41 PM
  2. [SOLVED] Correct syntax for referencing a separate worksheet in a formula when.
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-20-2014, 03:01 PM
  3. Very easy problem : Referencing to a GetOpenFilename sheet
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2012, 02:01 PM
  4. Total Excel Noob with what is probably very easy question
    By milkmoney11 in forum Excel General
    Replies: 2
    Last Post: 03-14-2009, 11:34 AM
  5. havnig some trouble with Select Case syntax stuff
    By Toadums in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2008, 06:41 PM
  6. Mega-easy noob problem -- PLEASE HELP!!
    By PinkZombie in forum Excel General
    Replies: 4
    Last Post: 09-06-2006, 07:58 AM
  7. Easy question for a noob
    By Brian0icu812 in forum Excel General
    Replies: 1
    Last Post: 02-17-2006, 09: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