+ Reply to Thread
Results 1 to 2 of 2

Verifying user input from InputBox

  1. #1
    Registered User
    Join Date
    06-25-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    34

    Verifying user input from InputBox

    I have a macro which asks the user to input several values and then I need to test and see if they are valid. Here is the current code that I have

    Please Login or Register  to view this content.
    The issue I am having is that if the user enters a decimal it will be accepted. Also I want to be able to cancel the input, i.e. if the user presses cancel the input box will disappear.

    Can anyone please offer me any suggestions to improve the code?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Verifying user input from InputBox

    Why not create a UserForm it would be much more professional looking
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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