+ Reply to Thread
Results 1 to 7 of 7

InputBox to Accept Negative Value

  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    InputBox to Accept Negative Value

    Hi, I'm using an Application InputBox to insert numbers into a worksheet, mostly these are + numbers but on the odd occasion they maybe minus numbers. is it possible to formulate the inputbox to accept + and - values?
    Last edited by zimbo109; 05-27-2010 at 03:44 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: InputBox to Accept Negative Value

    Why can't you just enter a negative number?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: InputBox to Accept Negative Value

    It won't accept it

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: InputBox to Accept Negative Value

    What code are you using? It should do.

  5. #5
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: InputBox to Accept Negative Value

    My error!!!!! sorry

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: InputBox to Accept Negative Value

    I had no problem getting a negative, what is the type of 'qty'? Is it an integer?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: InputBox to Accept Negative Value

    You've designed your code not to accept negative numbers, assuming get_qty restarts the InputBox.
    Entia non sunt multiplicanda sine necessitate

+ 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