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

Hi

Is there anyway to create an input mask or format check in Excel using VBA?
I need to validate the entry postcodes on a spreadsheet.

Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Input Mask

http://www.cpearson.com/excel/events.htm

see the Worksheet Change event.

--
Regards,
Tom Ogilvy

"Mark Harrison" wrote in message
...
Hi

Is there anyway to create an input mask or format check in Excel using

VBA?
I need to validate the entry postcodes on a spreadsheet.

Mark




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Input Mask

Thank you for your help, it has given me a start, however I am still unable
to create an input mask, I need to check that the first two characters in
the cell are letters and that the next character is to be a number, and so
on, is it possible to do that?

Mark



"Tom Ogilvy" wrote in message
...
http://www.cpearson.com/excel/events.htm

see the Worksheet Change event.

--
Regards,
Tom Ogilvy

"Mark Harrison" wrote in message
...
Hi

Is there anyway to create an input mask or format check in Excel using

VBA?
I need to validate the entry postcodes on a spreadsheet.

Mark






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Input Mask

Have you looked at Data=Validation and use the custom formula approach?

My previous suggestion would have used the change event (target holds a
reference to the cell triggering the event), to examine the contents of the
cell and react accordingly.

--
Regards,
Tom Ogilvy

"Mark Harrison" wrote in message
...
Thank you for your help, it has given me a start, however I am still

unable
to create an input mask, I need to check that the first two characters in
the cell are letters and that the next character is to be a number, and so
on, is it possible to do that?

Mark



"Tom Ogilvy" wrote in message
...
http://www.cpearson.com/excel/events.htm

see the Worksheet Change event.

--
Regards,
Tom Ogilvy

"Mark Harrison" wrote in message
...
Hi

Is there anyway to create an input mask or format check in Excel using

VBA?
I need to validate the entry postcodes on a spreadsheet.

Mark








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
Time Input Mask brett Excel Discussion (Misc queries) 0 January 13th 08 08:43 PM
Input Mask for Dates Brenda Rueter Excel Discussion (Misc queries) 5 April 24th 06 03:28 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
Mask input in input boxes? Eric[_14_] Excel Programming 4 November 29th 03 11:10 AM


All times are GMT +1. The time now is 06:10 AM.

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"