+ Reply to Thread
Results 1 to 5 of 5

textbox - stop users only entering a space as user name help

  1. #1
    Registered User
    Join Date
    08-20-2010
    Location
    uk
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    87

    textbox - stop users only entering a space as user name help

    Hi

    Is there a way to stop users only entering a user name as spaces only. I have a textbox which the user needs to enter then name to progress onto the next stage when clicking a command button. I have set the textbox so they have to enter a user name, However, if the user just enters spaces it will let them progress. I don't want to remove all spaces and can't find any help on the forums with this specific issue. The workbook is using userforms only.

    Currently using code

    Please Login or Register  to view this content.
    Thanks
    Last edited by janger; 04-21-2021 at 07:49 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,775

    Re: textbox - stop users only entering a space as user name help

    as part of your solution, you may need to expand the validation.
    Many years ago, i worked in MI for a global corporation and often found , . space and various other characters , allowing the input to be moved to the next field.
    So i suspect if you fix the space, the next will be a dot to overcome the entry issue
    Just a thought, i dont answer VBA questions , so will leave
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    08-20-2010
    Location
    uk
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    87

    Re: textbox - stop users only entering a space as user name help

    Hi

    A valid point and something I need to think about, hopefully there is a way round this.

    Thanks

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,263

    Re: textbox - stop users only entering a space as user name help

    To start with, you could use:

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    08-20-2010
    Location
    uk
    MS-Off Ver
    Office Pro Plus 2016
    Posts
    87

    Re: textbox - stop users only entering a space as user name help

    Will give it a try Thank you

+ 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] Stop editing textbox by user
    By Undo in forum Excel General
    Replies: 1
    Last Post: 10-03-2020, 11:00 AM
  2. I need to Prevent Users from Moving to Next Row w/out Entering a Certain Cell
    By Terrapin69 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2019, 11:51 AM
  3. [SOLVED] Stop user from entering data if condition met.
    By randall78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2018, 02:16 PM
  4. [SOLVED] VBA to stop users from entering data if certain criteria is met
    By steve400243 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2017, 09:36 AM
  5. [SOLVED] Stop user from entering text before or after space in data validation
    By dan66656 in forum Excel General
    Replies: 5
    Last Post: 05-08-2015, 08:14 AM
  6. [SOLVED] Stop users entering daya in more than 1 cell in a row range, 5 diff ranges
    By How How in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2013, 08:03 AM
  7. Prevent users from entering alphabet!
    By se7en_hills in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-24-2008, 02:27 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