Results 1 to 14 of 14

A blank input to a InputBox (method) runs the alert of typing formula in a cell with error

Threaded View

Pete u\'Line A blank input to a InputBox... 06-04-2023, 03:43 PM
Keebellah Re: A blank input to a... 06-04-2023, 05:17 PM
Pete u\'Line Re: A blank input to a... 06-05-2023, 01:14 AM
Keebellah Re: A blank input to a... 06-05-2023, 02:05 AM
Pete u\'Line Re: A blank input to a... 06-06-2023, 01:40 AM
Keebellah Re: A blank input to a... 06-05-2023, 02:44 AM
Pete u\'Line Re: A blank input to a... 06-06-2023, 01:42 AM
ByteMarks Re: A blank input to a... 06-05-2023, 08:28 AM
Pete u\'Line Re: A blank input to a... 06-06-2023, 01:49 AM
Keebellah Re: A blank input to a... 06-05-2023, 10:56 AM
Pete u\'Line Re: A blank input to a... 06-06-2023, 01:51 AM
Keebellah Re: A blank input to a... 06-06-2023, 02:09 AM
Pete u\'Line Re: A blank input to a... 06-06-2023, 02:10 PM
Keebellah Re: A blank input to a... 06-06-2023, 03:00 PM
  1. #5
    Registered User
    Join Date
    12-21-2020
    Location
    Santa Oliva
    MS-Off Ver
    Excel 2003, Excel 2007, Excel(Mac) 2011
    Posts
    11

    Re: A blank input to a InputBox (method) runs the alert of typing formula in a cell with e

    Quote Originally Posted by Keebellah View Post
    ... The InputBox expects a numeric value and the default answer for Excel when that is not entered is what you will get.

    ... do NOT force the type entry if you want other entries...
    Keebellah, firstable, I must say that I want to learn the benefits of using InputBox method instead of the function, just because it exists. And the "Type" parameter is the promised diamond shinning at the top of the mountain.

    Despite the fact that "Type:=1" makes InputBox to expect a numeric value, entries like "abc", " abc", "/" (strings) kindly tell the user that "Number is not valid" and gives him/her a new opportunity, without extra validation code:


    In the other hand, a "blank OK" (also a string, null or empty) doesn't produce the same nice effect, nor one space or a string of spaces.



    I don't want other entries than numeric ones, but just prevent the possible user's actions. If user clics "OK" accidentaly when nothing is entered, he/she will expect either a new opportunity or a cancellation effect. Even an erroneous validation of "" as a zero could be acceptable by a forbearing user.

    What is not understandable is "to accuse" the user of misstyping a formula in a cell, a user that perhaps hasn't never put an equal character "=" in a cell in his whole life:


    This (certainly crazy) alert is untrappable, unlike errors, to be handled. Yes, I can disable displaying alerts. If I do that, then I lose the kind "Numer is not valid" message when entering strings and I must substitute it with a msgbox with similar text and code to show the box again.

    So, the shinning diamond still brights far.
    Last edited by Pete u'Line; 06-06-2023 at 01:57 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Disable Typing/Paste/editing & Double click on locked cell without notification alert
    By abhinavbinkar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2018, 05:14 AM
  2. [SOLVED] Clear Text Box after Input Error Alert
    By azheuer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2018, 11:40 PM
  3. [SOLVED] inputbox to select cells instead of typing cell locations
    By miyachow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2013, 09:20 AM
  4. Cancelling an inputbox if blank input or cancel button is pressed
    By kathhying in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2011, 12:07 PM
  5. Retain the state of an inputbox's default input for successive runs
    By MCCCLXXXV in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2011, 10:02 AM
  6. [SOLVED] Formula expected end of statement error, typing formula into cell as part of VBA macro
    By DavidGMullins@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2006, 03:05 PM
  7. [SOLVED] Type Mismatch Error when using InputBox Method
    By Anolan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2005, 03:40 PM

Tags for this Thread

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