LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,045
Default Help with specific textbox entry...

On Sun, 4 Dec 2011 11:50:33 -0800 (PST), SS wrote:

On Dec 4, 12:58*pm, Ron Rosenfeld wrote:

frmLotNumber Like "[RMS0-9]#####"

will return TRUE or FALSE and you can incorporate this into your code to branch to whatever.

So something like:

Do Until frmLotNumber Like "[RMS0-9]#####"
* * * * msgbox("Invalid Entry")
* * * * 'Redisplay text box
loop- Hide quoted text -

- Show quoted text -


Thanks Gentlemen!!

I used this, and it works Beautifully!!

Do Until frmLotNumber.txtStartLotNumber Like "[RrMmSs0-9]#####"
MsgBox ("Invalid Entry")
txtStartLotNumber.SetFocus
Exit Sub
Loop


Glad to help. Thanks for the feedback.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox Clear last entry Corey Excel Programming 1 November 21st 06 07:17 AM
column of entry for textbox value robhargreaves Excel Programming 3 July 23rd 05 06:50 PM
Validate textbox entry Stuart[_21_] Excel Programming 2 May 13th 05 07:31 PM
Validate Textbox entry David Seebaran Excel Programming 3 April 18th 04 06:26 PM
Validating Entry into Textbox Brad[_11_] Excel Programming 1 December 4th 03 02:58 PM


All times are GMT +1. The time now is 05:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"