Results 1 to 5 of 5

if statement to force user enter string without spacing

Threaded View

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, 2010
    Posts
    73

    if statement to force user enter string without spacing

    Hi guys, is there any way to force user to key in a string without spacing? Example if user input "test test", system will prompt error and force user to input "testtest". My code is like this

    Sub Test()
    
    text = Application.InputBox("Enter text", Type:=2)
    
    ' If text has space Then   
    MsgBox("No spacing allowed")
    
    End Sub
    
    Is there any solution to it? Thanks in advance
    Last edited by rename; 12-20-2012 at 05:21 AM.

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