PC Review


Reply
 
 
jimmy
Guest
Posts: n/a
 
      3rd Mar 2007
Hi all,

How to set the entry in a specific column must in date type and checking for
this date must in a specific month? e.g. in the sheet name "Feb", all the
date in column in "A" other than February will not be accepted and prompt a
dialog box to ask the user to use another sheet..

Thanks


 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      3rd Mar 2007
You could create data validation for the column, let's say column E for this
example, with a custom type and a formula of

=MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"jimmy" <(E-Mail Removed)> wrote in message news:45e951b3$1@127.0.0.1...
> Hi all,
>
> How to set the entry in a specific column must in date type and checking
> for this date must in a specific month? e.g. in the sheet name "Feb", all
> the date in column in "A" other than February will not be accepted and
> prompt a dialog box to ask the user to use another sheet..
>
> Thanks
>



 
Reply With Quote
 
jimmy
Guest
Posts: n/a
 
      3rd Mar 2007
Sorry, what is "filename" for?
I tried to copy & paste your formula to E1 but doesn't, how to test?
Thanks..
"Bob Phillips" <(E-Mail Removed)> 级糶秎ン穝籇:%23$(E-Mail Removed)...
> You could create data validation for the column, let's say column E for
> this example, with a custom type and a formula of
>
> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
>
>
> "jimmy" <(E-Mail Removed)> wrote in message
> news:45e951b3$1@127.0.0.1...
>> Hi all,
>>
>> How to set the entry in a specific column must in date type and checking
>> for this date must in a specific month? e.g. in the sheet name "Feb", all
>> the date in column in "A" other than February will not be accepted and
>> prompt a dialog box to ask the user to use another sheet..
>>
>> Thanks
>>

>
>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      3rd Mar 2007
Filename is an argument to the Cell worksheet function telling it to return
the fully qualified path and filename of the workbook (and the sheet name).
However, it returns nothing unless the workbook has been saved once (so it
has a fully qualified path and filename).

--
Regards,
Tom Ogilvy


"jimmy" <(E-Mail Removed)> wrote in message news:45e98feb$1@127.0.0.1...
> Sorry, what is "filename" for?
> I tried to copy & paste your formula to E1 but doesn't, how to test?
> Thanks..
> "Bob Phillips" <(E-Mail Removed)>
> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>> You could create data validation for the column, let's say column E for
>> this example, with a custom type and a formula of
>>
>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "jimmy" <(E-Mail Removed)> wrote in message
>> news:45e951b3$1@127.0.0.1...
>>> Hi all,
>>>
>>> How to set the entry in a specific column must in date type and checking
>>> for this date must in a specific month? e.g. in the sheet name "Feb",
>>> all the date in column in "A" other than February will not be accepted
>>> and prompt a dialog box to ask the user to use another sheet..
>>>
>>> Thanks
>>>

>>
>>

>
>



 
Reply With Quote
 
jimmy
Guest
Posts: n/a
 
      3rd Mar 2007
My excel file is in the d:Book1.xls, I type the following in the sheet3 cell
"E1", then E1 display 1900/1/0. How to use it to check for the cell in "A1"
is my specific valid month?

=MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("d:Book1.xls.Sheet3",A1),FIND("]",CELL("d:Book1.xls.Sheet3",A1))+1,99)&"-"&YEAR(TODAY())))



"Tom Ogilvy" <(E-Mail Removed)> 级糶秎ン穝籇:(E-Mail Removed)...
> Filename is an argument to the Cell worksheet function telling it to
> return the fully qualified path and filename of the workbook (and the
> sheet name). However, it returns nothing unless the workbook has been
> saved once (so it has a fully qualified path and filename).
>
> --
> Regards,
> Tom Ogilvy
>
>
> "jimmy" <(E-Mail Removed)> wrote in message
> news:45e98feb$1@127.0.0.1...
>> Sorry, what is "filename" for?
>> I tried to copy & paste your formula to E1 but doesn't, how to test?
>> Thanks..
>> "Bob Phillips" <(E-Mail Removed)> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>>> You could create data validation for the column, let's say column E for
>>> this example, with a custom type and a formula of
>>>
>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>
>>> --
>>> ---
>>> HTH
>>>
>>> Bob
>>>
>>> (there's no email, no snail mail, but somewhere should be gmail in my
>>> addy)
>>>
>>>
>>>
>>> "jimmy" <(E-Mail Removed)> wrote in message
>>> news:45e951b3$1@127.0.0.1...
>>>> Hi all,
>>>>
>>>> How to set the entry in a specific column must in date type and
>>>> checking for this date must in a specific month? e.g. in the sheet name
>>>> "Feb", all the date in column in "A" other than February will not be
>>>> accepted and prompt a dialog box to ask the user to use another sheet..
>>>>
>>>> Thanks
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      3rd Mar 2007
First, the sheet must have a Month name, so change Sheet3 to Mar
Put this in cell E1 of the sheet named Mar (don't change the formula -
don't replace "filename")

=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))

Now select Column A of the sheet named Mar

go to Data=>Validation

Select Custom and in the textbox put in the formula

=Month(A1)=$E$1

and click OK.

--
Regards,
Tom Ogilvy

"jimmy" <(E-Mail Removed)> wrote in message news:45e9e320$1@127.0.0.1...
> My excel file is in the d:Book1.xls, I type the following in the sheet3
> cell "E1", then E1 display 1900/1/0. How to use it to check for the cell
> in "A1" is my specific valid month?
>
> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("d:Book1.xls.Sheet3",A1),FIND("]",CELL("d:Book1.xls.Sheet3",A1))+1,99)&"-"&YEAR(TODAY())))
>
>
>
> "Tom Ogilvy" <(E-Mail Removed)>
> 级糶秎ン穝籇:(E-Mail Removed)...
>> Filename is an argument to the Cell worksheet function telling it to
>> return the fully qualified path and filename of the workbook (and the
>> sheet name). However, it returns nothing unless the workbook has been
>> saved once (so it has a fully qualified path and filename).
>>
>> --
>> Regards,
>> Tom Ogilvy
>>
>>
>> "jimmy" <(E-Mail Removed)> wrote in message
>> news:45e98feb$1@127.0.0.1...
>>> Sorry, what is "filename" for?
>>> I tried to copy & paste your formula to E1 but doesn't, how to test?
>>> Thanks..
>>> "Bob Phillips" <(E-Mail Removed)>
>>> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>>>> You could create data validation for the column, let's say column E for
>>>> this example, with a custom type and a formula of
>>>>
>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>
>>>> --
>>>> ---
>>>> HTH
>>>>
>>>> Bob
>>>>
>>>> (there's no email, no snail mail, but somewhere should be gmail in my
>>>> addy)
>>>>
>>>>
>>>>
>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>> news:45e951b3$1@127.0.0.1...
>>>>> Hi all,
>>>>>
>>>>> How to set the entry in a specific column must in date type and
>>>>> checking for this date must in a specific month? e.g. in the sheet
>>>>> name "Feb", all the date in column in "A" other than February will not
>>>>> be accepted and prompt a dialog box to ask the user to use another
>>>>> sheet..
>>>>>
>>>>> Thanks
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
jimmy
Guest
Posts: n/a
 
      4th Mar 2007
Thank you..
In fact, what's the different between using this and just set 01-03-2007 to
31-03-2007 in the Data => Validation?

"Tom Ogilvy" <(E-Mail Removed)> 级糶秎ン穝籇:(E-Mail Removed)...
> First, the sheet must have a Month name, so change Sheet3 to Mar
> Put this in cell E1 of the sheet named Mar (don't change the formula -
> don't replace "filename")
>
> =MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>
> Now select Column A of the sheet named Mar
>
> go to Data=>Validation
>
> Select Custom and in the textbox put in the formula
>
> =Month(A1)=$E$1
>
> and click OK.
>
> --
> Regards,
> Tom Ogilvy
>
> "jimmy" <(E-Mail Removed)> wrote in message
> news:45e9e320$1@127.0.0.1...
>> My excel file is in the d:Book1.xls, I type the following in the sheet3
>> cell "E1", then E1 display 1900/1/0. How to use it to check for the cell
>> in "A1" is my specific valid month?
>>
>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("d:Book1.xls.Sheet3",A1),FIND("]",CELL("d:Book1.xls.Sheet3",A1))+1,99)&"-"&YEAR(TODAY())))
>>
>>
>>
>> "Tom Ogilvy" <(E-Mail Removed)> 级糶秎ン穝籇:(E-Mail Removed)...
>>> Filename is an argument to the Cell worksheet function telling it to
>>> return the fully qualified path and filename of the workbook (and the
>>> sheet name). However, it returns nothing unless the workbook has been
>>> saved once (so it has a fully qualified path and filename).
>>>
>>> --
>>> Regards,
>>> Tom Ogilvy
>>>
>>>
>>> "jimmy" <(E-Mail Removed)> wrote in message
>>> news:45e98feb$1@127.0.0.1...
>>>> Sorry, what is "filename" for?
>>>> I tried to copy & paste your formula to E1 but doesn't, how to test?
>>>> Thanks..
>>>> "Bob Phillips" <(E-Mail Removed)> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>>>>> You could create data validation for the column, let's say column E
>>>>> for this example, with a custom type and a formula of
>>>>>
>>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>>
>>>>> --
>>>>> ---
>>>>> HTH
>>>>>
>>>>> Bob
>>>>>
>>>>> (there's no email, no snail mail, but somewhere should be gmail in my
>>>>> addy)
>>>>>
>>>>>
>>>>>
>>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>>> news:45e951b3$1@127.0.0.1...
>>>>>> Hi all,
>>>>>>
>>>>>> How to set the entry in a specific column must in date type and
>>>>>> checking for this date must in a specific month? e.g. in the sheet
>>>>>> name "Feb", all the date in column in "A" other than February will
>>>>>> not be accepted and prompt a dialog box to ask the user to use
>>>>>> another sheet..
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      4th Mar 2007
This will vary the validation based upon the sheet name, so you can apply
the same formula to all sheets, not a different one to each.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"jimmy" <(E-Mail Removed)> wrote in message news:45eac360$1@127.0.0.1...
> Thank you..
> In fact, what's the different between using this and just set 01-03-2007
> to 31-03-2007 in the Data => Validation?
>
> "Tom Ogilvy" <(E-Mail Removed)>
> 级糶秎ン穝籇:(E-Mail Removed)...
>> First, the sheet must have a Month name, so change Sheet3 to Mar
>> Put this in cell E1 of the sheet named Mar (don't change the formula -
>> don't replace "filename")
>>
>> =MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>
>> Now select Column A of the sheet named Mar
>>
>> go to Data=>Validation
>>
>> Select Custom and in the textbox put in the formula
>>
>> =Month(A1)=$E$1
>>
>> and click OK.
>>
>> --
>> Regards,
>> Tom Ogilvy
>>
>> "jimmy" <(E-Mail Removed)> wrote in message
>> news:45e9e320$1@127.0.0.1...
>>> My excel file is in the d:Book1.xls, I type the following in the sheet3
>>> cell "E1", then E1 display 1900/1/0. How to use it to check for the
>>> cell in "A1" is my specific valid month?
>>>
>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("d:Book1.xls.Sheet3",A1),FIND("]",CELL("d:Book1.xls.Sheet3",A1))+1,99)&"-"&YEAR(TODAY())))
>>>
>>>
>>>
>>> "Tom Ogilvy" <(E-Mail Removed)>
>>> 级糶秎ン穝籇:(E-Mail Removed)...
>>>> Filename is an argument to the Cell worksheet function telling it to
>>>> return the fully qualified path and filename of the workbook (and the
>>>> sheet name). However, it returns nothing unless the workbook has been
>>>> saved once (so it has a fully qualified path and filename).
>>>>
>>>> --
>>>> Regards,
>>>> Tom Ogilvy
>>>>
>>>>
>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>> news:45e98feb$1@127.0.0.1...
>>>>> Sorry, what is "filename" for?
>>>>> I tried to copy & paste your formula to E1 but doesn't, how to test?
>>>>> Thanks..
>>>>> "Bob Phillips" <(E-Mail Removed)>
>>>>> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>>>>>> You could create data validation for the column, let's say column E
>>>>>> for this example, with a custom type and a formula of
>>>>>>
>>>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>>>
>>>>>> --
>>>>>> ---
>>>>>> HTH
>>>>>>
>>>>>> Bob
>>>>>>
>>>>>> (there's no email, no snail mail, but somewhere should be gmail in my
>>>>>> addy)
>>>>>>
>>>>>>
>>>>>>
>>>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>>>> news:45e951b3$1@127.0.0.1...
>>>>>>> Hi all,
>>>>>>>
>>>>>>> How to set the entry in a specific column must in date type and
>>>>>>> checking for this date must in a specific month? e.g. in the sheet
>>>>>>> name "Feb", all the date in column in "A" other than February will
>>>>>>> not be accepted and prompt a dialog box to ask the user to use
>>>>>>> another sheet..
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
jimmy
Guest
Posts: n/a
 
      4th Mar 2007
ic..thank you.
The 12 sheets have named as January to December, I wish to write the code in
the Workbook open() function that the current month sheet activate...I tried
MONTH(TODAY()).ACTIVATE but failed. What the code should be?

"Bob Phillips" <(E-Mail Removed)> 级糶秎ン穝籇:(E-Mail Removed)...
> This will vary the validation based upon the sheet name, so you can apply
> the same formula to all sheets, not a different one to each.
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my
> addy)
>
>
>
> "jimmy" <(E-Mail Removed)> wrote in message
> news:45eac360$1@127.0.0.1...
>> Thank you..
>> In fact, what's the different between using this and just set 01-03-2007
>> to 31-03-2007 in the Data => Validation?
>>
>> "Tom Ogilvy" <(E-Mail Removed)> 级糶秎ン穝籇:(E-Mail Removed)...
>>> First, the sheet must have a Month name, so change Sheet3 to Mar
>>> Put this in cell E1 of the sheet named Mar (don't change the formula -
>>> don't replace "filename")
>>>
>>> =MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>
>>> Now select Column A of the sheet named Mar
>>>
>>> go to Data=>Validation
>>>
>>> Select Custom and in the textbox put in the formula
>>>
>>> =Month(A1)=$E$1
>>>
>>> and click OK.
>>>
>>> --
>>> Regards,
>>> Tom Ogilvy
>>>
>>> "jimmy" <(E-Mail Removed)> wrote in message
>>> news:45e9e320$1@127.0.0.1...
>>>> My excel file is in the d:Book1.xls, I type the following in the sheet3
>>>> cell "E1", then E1 display 1900/1/0. How to use it to check for the
>>>> cell in "A1" is my specific valid month?
>>>>
>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("d:Book1.xls.Sheet3",A1),FIND("]",CELL("d:Book1.xls.Sheet3",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>
>>>>
>>>>
>>>> "Tom Ogilvy" <(E-Mail Removed)> 级糶秎ン穝籇:(E-Mail Removed)...
>>>>> Filename is an argument to the Cell worksheet function telling it to
>>>>> return the fully qualified path and filename of the workbook (and the
>>>>> sheet name). However, it returns nothing unless the workbook has been
>>>>> saved once (so it has a fully qualified path and filename).
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Tom Ogilvy
>>>>>
>>>>>
>>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>>> news:45e98feb$1@127.0.0.1...
>>>>>> Sorry, what is "filename" for?
>>>>>> I tried to copy & paste your formula to E1 but doesn't, how to test?
>>>>>> Thanks..
>>>>>> "Bob Phillips" <(E-Mail Removed)> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>>>>>>> You could create data validation for the column, let's say column E
>>>>>>> for this example, with a custom type and a formula of
>>>>>>>
>>>>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>>>>
>>>>>>> --
>>>>>>> ---
>>>>>>> HTH
>>>>>>>
>>>>>>> Bob
>>>>>>>
>>>>>>> (there's no email, no snail mail, but somewhere should be gmail in
>>>>>>> my addy)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>>>>> news:45e951b3$1@127.0.0.1...
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> How to set the entry in a specific column must in date type and
>>>>>>>> checking for this date must in a specific month? e.g. in the sheet
>>>>>>>> name "Feb", all the date in column in "A" other than February will
>>>>>>>> not be accepted and prompt a dialog box to ask the user to use
>>>>>>>> another sheet..
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      4th Mar 2007
Try

Worksheets(Format(Date,"mmmm")).Activate

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"jimmy" <(E-Mail Removed)> wrote in message news:45eadcd4$1@127.0.0.1...
> ic..thank you.
> The 12 sheets have named as January to December, I wish to write the code
> in the Workbook open() function that the current month sheet activate...I
> tried MONTH(TODAY()).ACTIVATE but failed. What the code should be?
>
> "Bob Phillips" <(E-Mail Removed)>
> 级糶秎ン穝籇:(E-Mail Removed)...
>> This will vary the validation based upon the sheet name, so you can apply
>> the same formula to all sheets, not a different one to each.
>>
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "jimmy" <(E-Mail Removed)> wrote in message
>> news:45eac360$1@127.0.0.1...
>>> Thank you..
>>> In fact, what's the different between using this and just set 01-03-2007
>>> to 31-03-2007 in the Data => Validation?
>>>
>>> "Tom Ogilvy" <(E-Mail Removed)>
>>> 级糶秎ン穝籇:(E-Mail Removed)...
>>>> First, the sheet must have a Month name, so change Sheet3 to Mar
>>>> Put this in cell E1 of the sheet named Mar (don't change the formula -
>>>> don't replace "filename")
>>>>
>>>> =MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>
>>>> Now select Column A of the sheet named Mar
>>>>
>>>> go to Data=>Validation
>>>>
>>>> Select Custom and in the textbox put in the formula
>>>>
>>>> =Month(A1)=$E$1
>>>>
>>>> and click OK.
>>>>
>>>> --
>>>> Regards,
>>>> Tom Ogilvy
>>>>
>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>> news:45e9e320$1@127.0.0.1...
>>>>> My excel file is in the d:Book1.xls, I type the following in the
>>>>> sheet3 cell "E1", then E1 display 1900/1/0. How to use it to check
>>>>> for the cell in "A1" is my specific valid month?
>>>>>
>>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("d:Book1.xls.Sheet3",A1),FIND("]",CELL("d:Book1.xls.Sheet3",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>>
>>>>>
>>>>>
>>>>> "Tom Ogilvy" <(E-Mail Removed)>
>>>>> 级糶秎ン穝籇:(E-Mail Removed)...
>>>>>> Filename is an argument to the Cell worksheet function telling it to
>>>>>> return the fully qualified path and filename of the workbook (and the
>>>>>> sheet name). However, it returns nothing unless the workbook has been
>>>>>> saved once (so it has a fully qualified path and filename).
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> Tom Ogilvy
>>>>>>
>>>>>>
>>>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>>>> news:45e98feb$1@127.0.0.1...
>>>>>>> Sorry, what is "filename" for?
>>>>>>> I tried to copy & paste your formula to E1 but doesn't, how to test?
>>>>>>> Thanks..
>>>>>>> "Bob Phillips" <(E-Mail Removed)>
>>>>>>> 级糶秎ン穝籇:%23$(E-Mail Removed)...
>>>>>>>> You could create data validation for the column, let's say column E
>>>>>>>> for this example, with a custom type and a formula of
>>>>>>>>
>>>>>>>> =MONTH(E1)=MONTH(DATEVALUE("01-"&MID(CELL("Filename",A1),FIND("]",CELL("filename",A1))+1,99)&"-"&YEAR(TODAY())))
>>>>>>>>
>>>>>>>> --
>>>>>>>> ---
>>>>>>>> HTH
>>>>>>>>
>>>>>>>> Bob
>>>>>>>>
>>>>>>>> (there's no email, no snail mail, but somewhere should be gmail in
>>>>>>>> my addy)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> "jimmy" <(E-Mail Removed)> wrote in message
>>>>>>>> news:45e951b3$1@127.0.0.1...
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> How to set the entry in a specific column must in date type and
>>>>>>>>> checking for this date must in a specific month? e.g. in the sheet
>>>>>>>>> name "Feb", all the date in column in "A" other than February will
>>>>>>>>> not be accepted and prompt a dialog box to ask the user to use
>>>>>>>>> another sheet..
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Date, Include dates from rest of month and all of next month MSchmidty2 Microsoft Excel Programming 4 28th Jul 2009 05:08 PM
check if is last day of month then, else pswanie Microsoft Excel Programming 9 17th Mar 2008 01:16 AM
check for last day of month =?Utf-8?B?cHN3YW5pZQ==?= Microsoft Excel Programming 11 26th Sep 2007 08:20 PM
printing Little Current month and Little Next month on Banner when it should little PRIOR month and little Next month. jake_allen10@hotmail.com Microsoft Outlook 0 3rd Nov 2006 07:30 PM
check day as well as month kaplonk Microsoft Excel Misc 3 11th Aug 2004 01:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:36 AM.