+ Reply to Thread
Results 1 to 7 of 7

Using Vlookup or something similar in VBA

  1. #1
    Forum Contributor
    Join Date
    10-18-2018
    Location
    Amsterdam, Holland
    MS-Off Ver
    2013
    Posts
    104

    Using Vlookup or something similar in VBA

    Hi all,

    I asked this question also on mrexcel.com but after a week of trying out i didn't find the right answer yet. Since i can't use attachments there im hopefull that this forum will guide me to the right answer.

    See attachment;
    When you place a "x" in column E under Production Returns the userform "Production Returns" opens.
    On this is a label called "lblGelCodeR"
    lblGelCodeR.caption displays a code like 0001.
    It get it's data from column A on worksheet "Data".

    On this forum is a link named "Info" that opens a new userform called "GelBMRProperties".
    The link contains the following code;

    Please Login or Register  to view this content.
    When the userform "GelBMRProperties" opens the Gel code from the userform "Production Returns" displays on the userform "GelBMRProperties".

    Also on this page is the label lblPagesReturn.

    Now i try to do the following;
    P
    I would like that some Vlookup code looks to lblGelCodeR on GelBMRProperties and gets data from worksheet "Products" and changes lblPagesReturn on GelBMRProperties to the corresponding value.
    The corresponding amount of pages is in column "E" of worksheet "Products".

    See attachement

    Thanks in advance.
    Attached Files Attached Files
    Last edited by Bandito1; 06-18-2019 at 08:24 PM.

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

    Re: Using Vlookup or something similar in VBA

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    10-18-2018
    Location
    Amsterdam, Holland
    MS-Off Ver
    2013
    Posts
    104

    Re: Using Vlookup or something similar in VBA

    Thanks for your reply.

    Sorry this goes to fast for me.
    I don't see where lblPageReturn.Caption on GelBMRProperties gets it's new value based on the lblGelCodeR.Caption.

    As a result I can't get this code to work.

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

    Re: Using Vlookup or something similar in VBA

    Looks like I modified the wrong sub. I'll look at it again....

  5. #5
    Forum Contributor
    Join Date
    10-18-2018
    Location
    Amsterdam, Holland
    MS-Off Ver
    2013
    Posts
    104

    Re: Using Vlookup or something similar in VBA

    Thank you very much in advance


    Saw i uploaded a file with password on it..

    Edited it and it's without password now
    Last edited by Bandito1; 06-18-2019 at 08:48 PM.

  6. #6
    Forum Contributor
    Join Date
    10-18-2018
    Location
    Amsterdam, Holland
    MS-Off Ver
    2013
    Posts
    104

    Re: Using Vlookup or something similar in VBA

    Hey protonLeah,

    Did you manage to find time to look into this?

    Thanks in advance

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

    Re: Using Vlookup or something similar in VBA

    Please Login or Register  to view this content.
    'Productreturns form code
    Please Login or Register  to view this content.

+ 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] sum, similar lookup value using vlookup
    By Felix212 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-29-2017, 06:45 AM
  2. Double Vlookup or similar
    By excelina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2016, 11:50 PM
  3. Possible Vlookup or something similar
    By JFR2015 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2015, 06:51 AM
  4. [SOLVED] Need Vlookup help ... or something similar
    By Bud in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-30-2006, 05:10 PM
  5. vlookup or similar help
    By Ash in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2006, 01:20 AM
  6. [SOLVED] Similar to Vlookup
    By Mike in forum Excel General
    Replies: 1
    Last Post: 02-01-2006, 12:25 PM
  7. [SOLVED] Similar to VLOOKUP?
    By Harish Mohanbabu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2005, 11:15 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