+ Reply to Thread
Results 1 to 5 of 5

vlookup sheet1

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Spain
    MS-Off Ver
    Excel 2010
    Posts
    57

    vlookup sheet1

    Hi,

    I have a vloopkup code and I was wondering if anyone knew how to change the sheet1 part so the code reads sheet1 every single time, but the tab will be named differently every single month ? Thank you!

    .Formula = "=VLOOKUP(C" & .Row & ",'[" & ListBox2.List(j) & "]Sheet1'!$A$4:$B$200,2,FALSE)"

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: vlookup sheet1

    set sheetname to the proper sheet name (month)

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: vlookup sheet1

    I'm guessing if this is Sheet(3) regardless sheet name change every month then change to:
    Please Login or Register  to view this content.
    just guessing
    Regards,
    tt3

    Updated:
    Code from rcm is correct
    Last edited by tuongtu3; 09-22-2013 at 05:58 PM.

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    Spain
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: vlookup sheet1

    Hey Guys,
    I changed the formula to

    .Formula = "=VLOOKUP(C" & .Row & ",'[" & ListBox2.List(j) & "]" & Sheet(1) & "'!$A$4:$B$200,2,FALSE)"

    and it is not working. ANy ideas why? Thank you for all your help thus far.

  5. #5
    Registered User
    Join Date
    09-10-2013
    Location
    Spain
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: vlookup sheet1

    Can someone please help? Thank you.

+ 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. =+Sheet1!A1+Sheet1!B1+Sheet1!C1 macro to convert all linked ref to Values
    By chriszoma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2013, 02:44 PM
  2. merge book1,sheet1,book2,sheet1,book3,sheet1 ect
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2013, 01:30 PM
  3. [SOLVED] Coppying data from sheet1 to sheet2 using (VLOOKUP)
    By Realty in forum Excel General
    Replies: 9
    Last Post: 12-15-2012, 09:24 AM
  4. using data from =Sheet1!A3 to perform vlookup?
    By Micha in forum Excel General
    Replies: 4
    Last Post: 05-09-2012, 07:33 AM
  5. Vlookup value from sheet1, copy past value to sheet2
    By Dannypak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2010, 02:09 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