Results 1 to 4 of 4

Vlookup VBA

Threaded View

  1. #1
    Registered User
    Join Date
    11-21-2015
    Location
    france
    MS-Off Ver
    2010
    Posts
    57

    Vlookup VBA

    Hello everyone,

    I would need some help finding what's wrong with my code please.

    VLOOKUP( value, table, index_number, [not_exact_match] ) : here the value is in another workbook (so I'd like my result to be written in another workbook).

    My code :


    Sub exp()
    
    Dim db As Workbook
    Set db = Workbooks("wk46prod")
    
    
    db.Worksheets("Packing Schedule").Range("G13") = _
    Application.WorksheetFunction.VLookup(db.Range("G28"), Workbooks("vba stock").Worksheets("feuil1").Range("B9:d18"), 3, False)
    
    
    End Sub
    thank you v much in advancz
    Last edited by FDibbins; 11-21-2015 at 08:17 PM. Reason: code tags added :)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  3. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  4. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  7. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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