#1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 25
Default mask

Hello,

I have got some string:
test = "12aaa-cc-xxx"

and I need it compere with this mask:
mask = xxxx-xxx-xx-00

where x menas anything and 0 is needed

how can I do somethnig like this:
if test correspond mask then is True

Tom


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default mask


Hello Tom,

If you are only checking the last two characters of the string, you ca
test it this way.

If Right(Test, 2) = "00" Then Result = True


Hope this helps,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=34660

Reply
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
Data Mask Jasmine Excel Discussion (Misc queries) 5 October 3rd 06 05:42 PM
Input Mask Steven Excel Worksheet Functions 1 January 16th 06 11:27 PM
Input Mask Jimmy Clay New Users to Excel 3 December 1st 04 01:16 AM
Password mask jose aponte Excel Programming 1 September 10th 03 10:49 PM
Password mask jose Excel Programming 2 September 10th 03 09:03 PM


All times are GMT +1. The time now is 03:43 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"