Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Expiry mm/yy and validation

I need to create a form where one field is expiry month & year (no date) and
set a data validation to ensure that this is current.

I've learnt in other threads that you have to enter date, even if it's a
hypothetical one, and have it not displayed.

This'll work if I'm doing the data entry but it'll have to be made for the
use of other people as well so I'd rather make it simple.

How can I have four digits entered (without "/" or hyphen) to be recognised
as mm/yy, displayed as "mm/yy" (or "mm-yy") and have the record validated to
ensure that it is future month/year?

--
Maki @ Canberra.AU
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Expiry mm/yy and validation

It's easy enough but a bit more background will help.

When you say a for, do you mean a userform, or a pseudo-form within a
worksheet? If the former, is the date to be entered by the user in a
textbox?

--
__________________________________
HTH

Bob

"Maki" wrote in message
...
I need to create a form where one field is expiry month & year (no date)
and
set a data validation to ensure that this is current.

I've learnt in other threads that you have to enter date, even if it's a
hypothetical one, and have it not displayed.

This'll work if I'm doing the data entry but it'll have to be made for the
use of other people as well so I'd rather make it simple.

How can I have four digits entered (without "/" or hyphen) to be
recognised
as mm/yy, displayed as "mm/yy" (or "mm-yy") and have the record validated
to
ensure that it is future month/year?

--
Maki @ Canberra.AU



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Expiry mm/yy and validation

Thank you, Bob,

It's really the latter, just a spreadsheet and no macro or VBA scripting
involved.

Would it be more complicated or less?

--
Maki @ Canberra.AU


"Bob Phillips" wrote:

It's easy enough but a bit more background will help.

When you say a for, do you mean a userform, or a pseudo-form within a
worksheet? If the former, is the date to be entered by the user in a
textbox?

--
__________________________________
HTH

Bob

"Maki" wrote in message
...
I need to create a form where one field is expiry month & year (no date)
and
set a data validation to ensure that this is current.

I've learnt in other threads that you have to enter date, even if it's a
hypothetical one, and have it not displayed.

This'll work if I'm doing the data entry but it'll have to be made for the
use of other people as well so I'd rather make it simple.

How can I have four digits entered (without "/" or hyphen) to be
recognised
as mm/yy, displayed as "mm/yy" (or "mm-yy") and have the record validated
to
ensure that it is future month/year?

--
Maki @ Canberra.AU




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Expiry mm/yy and validation

It actually makes it simpler, but it needs VBA. Is that okay for you?

--
__________________________________
HTH

Bob

"Maki" wrote in message
...
Thank you, Bob,

It's really the latter, just a spreadsheet and no macro or VBA scripting
involved.

Would it be more complicated or less?

--
Maki @ Canberra.AU


"Bob Phillips" wrote:

It's easy enough but a bit more background will help.

When you say a for, do you mean a userform, or a pseudo-form within a
worksheet? If the former, is the date to be entered by the user in a
textbox?

--
__________________________________
HTH

Bob

"Maki" wrote in message
...
I need to create a form where one field is expiry month & year (no date)
and
set a data validation to ensure that this is current.

I've learnt in other threads that you have to enter date, even if it's
a
hypothetical one, and have it not displayed.

This'll work if I'm doing the data entry but it'll have to be made for
the
use of other people as well so I'd rather make it simple.

How can I have four digits entered (without "/" or hyphen) to be
recognised
as mm/yy, displayed as "mm/yy" (or "mm-yy") and have the record
validated
to
ensure that it is future month/year?

--
Maki @ Canberra.AU






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Expiry mm/yy and validation

I haven't done VBA with Excel 2007 but I can give it a try...
--
Maki @ Canberra.AU


"Bob Phillips" wrote:

It actually makes it simpler, but it needs VBA. Is that okay for you?

--
__________________________________
HTH

Bob

"Maki" wrote in message
...
Thank you, Bob,

It's really the latter, just a spreadsheet and no macro or VBA scripting
involved.

Would it be more complicated or less?

--
Maki @ Canberra.AU


"Bob Phillips" wrote:

It's easy enough but a bit more background will help.

When you say a for, do you mean a userform, or a pseudo-form within a
worksheet? If the former, is the date to be entered by the user in a
textbox?

--
__________________________________
HTH

Bob

"Maki" wrote in message
...
I need to create a form where one field is expiry month & year (no date)
and
set a data validation to ensure that this is current.

I've learnt in other threads that you have to enter date, even if it's
a
hypothetical one, and have it not displayed.

This'll work if I'm doing the data entry but it'll have to be made for
the
use of other people as well so I'd rather make it simple.

How can I have four digits entered (without "/" or hyphen) to be
recognised
as mm/yy, displayed as "mm/yy" (or "mm-yy") and have the record
validated
to
ensure that it is future month/year?

--
Maki @ Canberra.AU






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
Expiry Date calculation Arup C[_2_] Excel Discussion (Misc queries) 3 December 13th 07 02:22 PM
VBA For Expiry date Alam Excel Discussion (Misc queries) 1 November 18th 07 11:36 AM
Expiry date Martina Excel Worksheet Functions 6 February 11th 07 09:57 PM
Date of expiry - warning? Jonas Excel Worksheet Functions 5 January 27th 06 08:21 PM
formulation of an expiry summary croberts New Users to Excel 1 October 7th 05 06:30 PM


All times are GMT +1. The time now is 04:19 PM.

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

About Us

"It's about Microsoft Excel"