+ Reply to Thread
Results 1 to 3 of 3

Validating User Input in Textbox [Form Control]

  1. #1
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    50

    Validating User Input in Textbox [Form Control]

    Dear All

    I have a Textbox (Form Control) on a sheet that i wish to validate when the user changes the text. Specifically i wish to restrict entry to only numeric with a maximum of one decimal point. If this had been a Userform Textbox then i would used something like below.

    I can find very little help on how to proceed when the textbox is a shape. I have to use the Form Control Textbox rather than just validating a cell as it is imperative that the textbox lays on top of corporate graphics in the sheet. In this instance the use of a userform is not appropriate.

    Can anyone suggest a good resource for working with Form Control Textboxes, especially validation, or how i can proceed.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Validating User Input in Textbox [Form Control]

    Is the textbox linked to a cell?

    If it is then you could use a SheetChange event to check the value in the linked cell.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-29-2017
    Location
    London
    MS-Off Ver
    2016 Professional
    Posts
    50

    Re: Validating User Input in Textbox [Form Control]

    No the Textbox is not linked to a cell

+ 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. User form TextBox not allow new input after something has already been entered in it
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2015, 11:06 AM
  2. First User Form needs help with using textbox input a variable in vba Macro
    By capson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2015, 10:34 PM
  3. [SOLVED] TextBox user input to change text in content control with VBA?
    By EnigmaMatter in forum Word Formatting & General
    Replies: 2
    Last Post: 09-06-2014, 06:56 PM
  4. Pop-Up form with User Input - Inventory Control
    By sigma1113 in forum Excel General
    Replies: 1
    Last Post: 07-21-2014, 07:41 AM
  5. [SOLVED] User Form focus on textbox control?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2014, 11:12 PM
  6. vba excel user form restrict input on user textbox
    By samz93 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2013, 04:38 PM
  7. User form textbox message for input error
    By microsmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2007, 02:50 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