+ Reply to Thread
Results 1 to 7 of 7

InputBox Bypass Range Confirmation

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Tolland, CT
    MS-Off Ver
    Excel 2007
    Posts
    37

    InputBox Bypass Range Confirmation

    Hi everyone,

    I am searching for a way to get user input that doesnt require the user to confirm what they select.

    Currently my program asks the user to select a cell and executes code based on their result.
    I have noticed that with inputBox you have to select a cell or range and then confirm it before the code executes. Is there some way to bypass the confirmation and just have the first mousepress pass the value of that cell?

    If it's not possible with InputBox I'm open to other suggestions.

    Thanks

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: InputBox Bypass Range Confirmation

    What do you mean by confirm? That they have to click an OK button?
    Can you share your workbook or current code?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: InputBox Bypass Range Confirmation

    Andy Pope published something that we might be able to sadapt.

    http://www.ozgrid.com/forum/showthread.php?t=56197
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: InputBox Bypass Range Confirmation

    Success!

    Try this.

    Please let me know if you get anywhere with this.

    It could be useful

    It runs on selection change and right click.

    It will meet your requirements.
    Attached Files Attached Files
    Last edited by mehmetcik; 12-19-2014 at 03:23 PM.

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Tolland, CT
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: InputBox Bypass Range Confirmation

    I guess my question wasn't clear enough. I didn't include code because it's not really relevent.

    Arkadi, Yes I would like to find a way to skip the user hitting "OK" and just automatically use whatever range they click. It seems like a simple thing, but it would really help my program run more smoothly.


    Some Thoughts:
    Thinking about the way the inputbox works it seems unlikely that there is anything built in (because the function can return many types). I stumbled on an article which showed a way to check for mouse input by writing a function in the worksheet, but I am struggling on how send that data to a running program which exists in a class module.

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: InputBox Bypass Range Confirmation

    What about using the textbox.exit event?

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: InputBox Bypass Range Confirmation

    Did you try my userform?

    If it is open and you click on a cell then the textbox picks up the cell address and the textbox change event is triggered.

+ 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] Select range with InputBox. Is it possible?
    By Isabel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2013, 06:36 AM
  2. [SOLVED] Select range via Inputbox
    By nakul2617 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-21-2013, 07:46 AM
  3. Replies: 9
    Last Post: 07-06-2012, 01:18 PM
  4. Selecting a range with an inputbox...
    By Rutgers_Excels in forum Excel General
    Replies: 0
    Last Post: 04-08-2005, 03:25 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