+ Reply to Thread
Results 1 to 5 of 5

XLOOKUP Built by VBA InputBox

  1. #1
    Registered User
    Join Date
    09-23-2016
    Location
    Logan, UT
    MS-Off Ver
    2016
    Posts
    1

    XLOOKUP Built by VBA InputBox

    Cross-posted at https://www.mrexcel.com/board/thread...utbox.1206644/

    I am trying to make a macro that will create an XLOOKUP for me. This is my first post so if I do something wrong let me know. This is my code and it's not working. Can anyone see why?

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 05-31-2022 at 10:46 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,835

    Re: XLOOKUP Built by VBA InputBox

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    I have added it to your post because it's your first thread.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,835

    Re: XLOOKUP Built by VBA InputBox

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,835

    Re: XLOOKUP Built by VBA InputBox

    Please explain what "not working" means.
    • Does the code run?
    • Does it run but do nothing?
    • Does it produce error messages? If so, what do the messages say?
    • Does it produce unexpected/wrong results? If so, how do the results differ from what you expect?
    • Does it hang?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,835

    Re: XLOOKUP Built by VBA InputBox

    Try this.

    Please Login or Register  to view this content.
    You may also want to consider using Type 8 in your second and third InputBoxes so the user can highlight a range directly in the sheet instead of typing in a range. You have no error checking so this will crash and burn if the user does not type a valid range.

+ 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. Replies: 2
    Last Post: 07-05-2019, 11:47 PM
  2. Masked Inputbox / Inputbox for passwords
    By Kyle123 in forum Tips and Tutorials
    Replies: 0
    Last Post: 04-28-2019, 02:09 AM
  3. [SOLVED] MACRO: If user clicks cancel in inputbox,then do nothing. Problem with inputbox appearance
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2015, 04:33 AM
  4. InputBox-ow to have a user input text in a inputbox
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2011, 08:17 AM
  5. Screen positioning inputbox that is set as Application.InputBox
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2010, 07:59 AM
  6. How to built in end macro if user cancels InputBox?
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2010, 02:41 AM
  7. Inputbox button control + msgbox for empty inputbox
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2009, 12:39 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