+ Reply to Thread
Results 1 to 12 of 12

Reference Macro

  1. #1
    Registered User
    Join Date
    09-18-2015
    Location
    Woodlands, Singapore
    MS-Off Ver
    2003
    Posts
    32

    Reference Macro

    Good Day to everyone,

    I would like to seek help regarding data reference,

    i have been reading a lot of stuff and tutorials lately but it doesn't come to the point wherein i found what i was looking for, i'm good with suggestions or link reference that can help me solve my problem i'm not the skilled when it comes to excel macros but i'm eager to learn..
    so here is my problem i want my combobox wherein i can input certain name reference and display its data.. i really just can't find the most certain lesson / tutorial for this been looking around everywhere to this specific topic.
    Sample 101.xlsx
    Thanks in advance

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Reference Macro

    I don't find a combo box? If it's not included then you should add it to your workbook and be specific in what you want to have happen.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Reference Macro

    You might start by building a User Form instead of a drawing. Then use that Userform with Vlookup or Index/Match to get the data into the form

    http://www.contextures.com/xlUserForm01.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-18-2015
    Location
    Woodlands, Singapore
    MS-Off Ver
    2003
    Posts
    32

    Re: Reference Macro

    is there an easier way wherein i can use vlookup/index/match with those combo boxes instead of vb?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Reference Macro

    Seethe attached where I modified your lookup sheet. Also look at this link on Vlookup

    http://www.techonthenet.com/excel/formulas/vlookup.php
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-18-2015
    Location
    Woodlands, Singapore
    MS-Off Ver
    2003
    Posts
    32

    Re: Reference Macro

    here sir i have create my sample userformSample 101.xlsm

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Reference Macro

    Here is the code to install on your submit button on your form. In the Vlookup, you will have to set your lookup range if it is greater than the six lines you have provided.

    Please Login or Register  to view this content.
    to make it easier on your users, you may wish to make textbox1 a combo box with the names of all your participants.

  8. #8
    Registered User
    Join Date
    09-18-2015
    Location
    Woodlands, Singapore
    MS-Off Ver
    2003
    Posts
    32

    Re: Reference Macro

    Thank you sir, i'll get to try this one up

  9. #9
    Registered User
    Join Date
    09-18-2015
    Location
    Woodlands, Singapore
    MS-Off Ver
    2003
    Posts
    32

    Re: Reference Macro

    its perfectly working sir, thank you so much for your help!

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Reference Macro

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Registered User
    Join Date
    09-18-2015
    Location
    Woodlands, Singapore
    MS-Off Ver
    2003
    Posts
    32

    Re: Reference Macro

    done sir!, by the way, how am i able to use offset with vlookup in vb?

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Reference Macro

    Suggest you start a new thread with your questions. Since this is marked solve, no one will in all liklihood respond or look at it.

+ 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. How vba macro can get reference from cell
    By thiagosnow in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-19-2011, 11:42 AM
  2. absolute reference in macro
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2010, 09:32 AM
  3. Macro to reference result of another macro
    By No.Solutions. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2009, 03:30 PM
  4. [SOLVED] Activecell Reference in Macro
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2006, 02:19 PM
  5. Macro Reference
    By ToferKing in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2006, 01:15 AM
  6. Macro Writing Reference?
    By burnsbyrne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2005, 09:31 AM
  7. [SOLVED] Macro to Reference Column Next to Current Reference
    By dolphinv4 in forum Excel General
    Replies: 2
    Last Post: 04-11-2005, 04:06 AM

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