+ Reply to Thread
Results 1 to 3 of 3

How to use vba to get data from table on another sheet in same workbook

  1. #1
    Forum Contributor ndtsteve's Avatar
    Join Date
    05-01-2012
    Location
    Guildford, Surrey, England
    MS-Off Ver
    365 MSO (Version 2310 Build 16.0.16924.20054) 64-bit
    Posts
    104

    How to use vba to get data from table on another sheet in same workbook

    Hi there.

    I am hoping that someone can point me a the right direction with the attached file. I'm new to vba and struggling with coding as this is 'just a hobby' of mine that I play around with.

    I want to get to where selecting values in 2 different columns on sheet 1 will go to sheet 2 and select the corresponding value from a table and display that vale back on sheet 1. Hopefully the attachment will make it clearer

    I could probably do it a very long winded way:
    if cell = A and cell = 3 then value = A3
    if cell = A and cell = 5 then value = A5.......but I have many columns and rows to work with and this would take me ages. I'm sure there must be an easier way, I just don't know it.......yet!

    Thanks in advance.

  2. #2
    Forum Contributor tkowal's Avatar
    Join Date
    11-20-2010
    Location
    Miami, Fl
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: How to use vba to get data from table on another sheet in same workbook

    Example-vlookup.xlsx

    See if this helps ...
    Ted
    "Live Long and Prosper"

  3. #3
    Forum Contributor ndtsteve's Avatar
    Join Date
    05-01-2012
    Location
    Guildford, Surrey, England
    MS-Off Ver
    365 MSO (Version 2310 Build 16.0.16924.20054) 64-bit
    Posts
    104

    Re: How to use vba to get data from table on another sheet in same workbook

    Thankyou very much tkowal, looks like this will work fine.
    Should be pretty easy for me to expand on this and make it work for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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