Yes, working fine.

Can you please explain me
        Birth.Interior.Pattern = xlSolid
        PANo.Interior.Pattern = xlSolid

and when we are entering Birthdate using other than "/" it gives error,
instead of debug error, can we put error message.
Regards



On Tue, Sep 10, 2013 at 8:48 PM, De Premor <d...@premor.net> wrote:

>  If you sheet protected by a password, you can add a password on next
> statement
>
> Before doing some change on sheet, add this line
>
>     ActiveSheet.Unprotect "MySheetPassword"
>
> and after done with it, lock it again by using the same password
>
>     ActiveSheet.Protect "MySheetPassword"
>
>  Pada 10/09/2013 22:09, ITP Abdulgani Shaikh menulis:
>
>  Yes got it, but active sheet is password protected, any solution for
> that.
>
>
> On Tue, Sep 10, 2013 at 8:29 PM, De Premor <d...@premor.net> wrote:
>
>>  If you want to select current sheet, Use* ActiveSheet  *to select it,
>> not ActiveWorkbook
>>
>> *ActiveSheet*.Unprotect
>>
>> bla...bla...bla...
>>
>> *ActiveSheet*.Protect
>>
>>
>> Pada 10/09/2013 21:52, ITP Abdulgani Shaikh menulis:
>>
>>  Dear Sir,
>> This sheet is again giving problem, please see attachments.  When I am
>> additing sheet and running CHECK macro, it gives error on new added sheet.
>> Regards
>>
>>
>>
>> On Wed, Sep 4, 2013 at 10:24 AM, ITP Abdulgani Shaikh <
>> itpabdulg...@gmail.com> wrote:
>>
>>> Thnks its working fine.
>>>
>>> Can you do something for 2 issue, I know it require lil bit time
>>>
>>> Or do partly & guide me, i will try for it
>>>
>>> Once again thnks
>>>  On Sep 2, 2013 7:16 PM, "De Premor" <d...@premor.net> wrote:
>>>
>>>>  Ups Sorry, i've forgot a line code for unlocking you sheet protection
>>>>
>>>> See at Line 4 and last line that i've bold
>>>>
>>>> Sub check()
>>>>     Dim Birth As Range, PANo As Range, UserInput, Arr
>>>>     Set Birth = [G2]
>>>>     Set PANo = [j2]
>>>> *    Sheet5.Unprotect
>>>> *    If IsEmpty(Birth) Then
>>>>         Birth.Interior.Color = 255
>>>>         Birth.Interior.Pattern = xlSolid
>>>>         If MsgBox("Birth Date is empty, Do you want to enter data now
>>>> ?", vbYesNo + vbQuestion) = vbYes Then
>>>>             UserInput = Application.InputBox("Enter the Bith Date using
>>>> format DD/MM/YYYY", "Birth Date", Type:=2)
>>>>             If Not UserInput = False Then
>>>>                 Arr = Split(UserInput, "/")
>>>>                 Birth.Formula = "=DATE(" & Arr(2) & "," & Arr(1) & ","
>>>> & Arr(0) & ")"
>>>>                 Birth.Interior.Pattern = xlNone
>>>>             End If
>>>>         End If
>>>>     End If
>>>>     If IsEmpty(PANo) Then
>>>>         PANo.Interior.Color = 255
>>>>         PANo.Interior.Pattern = xlSolid
>>>>         If MsgBox("PANo is empty, Do you want to enter data now ?",
>>>> vbYesNo + vbQuestion) = vbYes Then
>>>>             UserInput = Application.InputBox("Input PANo !", "PANo",
>>>> Type:=1)
>>>>             If Not UserInput = False Then
>>>>                 PANo = UserInput
>>>>                 PANo.Interior.Pattern = xlNone
>>>>             End If
>>>>         End If
>>>>     End If
>>>> *    Sheet5.Protect**
>>>> *End Sub
>>>>
>>>>
>>>>
>>>>  Pada 02/09/2013 20:05, ITP Abdulgani Shaikh menulis:
>>>>
>>>>  Thank you for your response, but it gives error as, pl find attached
>>>> file.
>>>>
>>>>
>>>>  --
>>>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be?
>>>> It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>>>> https://www.facebook.com/discussexcel
>>>>
>>>> FORUM RULES
>>>>
>>>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>>>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>>>> will not get quick attention or may not be answered.
>>>> 2) Don't post a question in the thread of another member.
>>>> 3) Don't post questions regarding breaking or bypassing any security
>>>> measure.
>>>> 4) Acknowledge the responses you receive, good or bad.
>>>> 5) Jobs posting is not allowed.
>>>> 6) Sharing copyrighted material and their links is not allowed.
>>>>
>>>> NOTE : Don't ever post confidential data in a workbook. Forum owners
>>>> and members are not responsible for any loss.
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "MS EXCEL AND VBA MACROS" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to excel-macros+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to excel-macros@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/excel-macros.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>
>>
>>  --
>> Shaikh AbdulGani A R
>> ITP, STP, TRP, STRP
>> --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>> https://www.facebook.com/discussexcel
>>
>> FORUM RULES
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to excel-macros+unsubscr...@googlegroups.com.
>> To post to this group, send email to excel-macros@googlegroups.com.
>> Visit this group at http://groups.google.com/group/excel-macros.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>    --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>> https://www.facebook.com/discussexcel
>>
>> FORUM RULES
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to excel-macros+unsubscr...@googlegroups.com.
>> To post to this group, send email to excel-macros@googlegroups.com.
>> Visit this group at http://groups.google.com/group/excel-macros.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
>  --
> Shaikh AbdulGani A R
> ITP, STP, TRP, STRP
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>  --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Shaikh AbdulGani A R
ITP, STP, TRP, STRP

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to