$$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-13 Thread ITP Abdulgani Shaikh
Dear Freinds,

Please help me on following issue

My worksheet is protected, out of all cells, some cells are unprotected for
entering data.
If I am entering data in Cell C3 then Cell E3 should be auto unlock the
cell.
and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
auto locked.

Regards

-- 
FORUM RULES (986+ members already BANNED for violation)

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)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-13 Thread ITP Abdulgani Shaikh
Pl.find attached sample file

On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh <
itpabdulg...@gmail.com> wrote:

> Dear Freinds,
>
> Please help me on following issue
>
> My worksheet is protected, out of all cells, some cells are unprotected
> for entering data.
> If I am entering data in Cell C3 then Cell E3 should be auto unlock the
> cell.
> and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
> auto locked.
>
> Regards
>
>  --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> --
> To post to this group, send email to excel-macros@googlegroups.com
>



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

-- 
FORUM RULES (986+ members already BANNED for violation)

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)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


Book1.xls
Description: MS-Excel spreadsheet


RE: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-14 Thread Rajan_Verma
Hi,

You can try this :

 

Private Sub Worksheet_Change(ByVal Target As Range)

 

If Target.Address = "$C$3" Then

Me.Unprotect

If Target.Value = 0 Or Len(Target.Value) = 0 Then

Range("E3").Locked = False

Else

Range("E3").Locked = True

End If

End If

Me.Protect

End Sub

 

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of ITP Abdulgani Shaikh
Sent: Apr/Sat/2012 12:23
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock

 

Pl.find attached sample file

On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh
 wrote:

Dear Freinds, 

 

Please help me on following issue

 

My worksheet is protected, out of all cells, some cells are unprotected for
entering data.

If I am entering data in Cell C3 then Cell E3 should be auto unlock the
cell.

and if there is no data in Cell C3 or zero in C3 then Cell E3 should be auto
locked.

 

Regards

 

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com





 

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

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

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)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-14 Thread Abdulgani Shaikh
I have pasted this in Excel, but it is not working, pl.find attached file,
where i am wrong ?
Regards


On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma wrote:

> Hi,
>
> You can try this :
>
> ** **
>
> Private Sub Worksheet_Change(ByVal Target As Range)
>
> ** **
>
> If Target.Address = "$C$3" Then
>
> Me.Unprotect
>
> If Target.Value = 0 Or Len(Target.Value) = 0 Then
>
> Range("E3").Locked = False
>
> Else
>
> Range("E3").Locked = True
>
> End If
>
> End If
>
> Me.Protect
>
> End Sub
>
> ** **
>
> ** **
>
> *From:* excel-macros@googlegroups.com [mailto:
> excel-macros@googlegroups.com] *On Behalf Of *ITP Abdulgani Shaikh
> *Sent:* Apr/Sat/2012 12:23
> *To:* excel-macros@googlegroups.com
> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
> unlock
>
> ** **
>
> Pl.find attached sample file
>
> On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh <
> itpabdulg...@gmail.com> wrote:
>
> Dear Freinds, 
>
> ** **
>
> Please help me on following issue
>
> ** **
>
> My worksheet is protected, out of all cells, some cells are unprotected
> for entering data.
>
> If I am entering data in Cell C3 then Cell E3 should be auto unlock the
> cell.
>
> and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
> auto locked.
>
> ** **
>
> Regards
>
> ** **
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> --
> To post to this group, send email to excel-macros@googlegroups.com
>
>
>
> 
>
> ** **
>
> --
> Shaikh AbdulGani A R
> ITP, STP, TRP, STRP
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> --
> To post to this group, send email to excel-macros@googlegroups.com
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> --
> To post to this group, send email to excel-macros@googlegroups.com
>

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgen

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-14 Thread Abdulgani Shaikh
Dear Freinds,

Please help me on following issue

My worksheet is protected, out of all cells, some cells are unprotected for
entering data.
If I am entering data in Cell C3 then Cell E3 should be auto unlock.
and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
auto locked.

Also tell me what is private sub function in macro.

Regards




On Sat, Apr 14, 2012 at 3:48 PM, Abdulgani Shaikh wrote:

> Pl.reply
>
>
> On Sat, Apr 14, 2012 at 2:02 PM, Abdulgani Shaikh 
> wrote:
>
>> I have pasted this in Excel, but it is not working, pl.find attached
>> file, where i am wrong ?
>> Regards
>>
>>
>> On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma 
>> wrote:
>>
>>> Hi,
>>>
>>> You can try this :
>>>
>>> ** **
>>>
>>> Private Sub Worksheet_Change(ByVal Target As Range)
>>>
>>> ** **
>>>
>>> If Target.Address = "$C$3" Then
>>>
>>> Me.Unprotect
>>>
>>> If Target.Value = 0 Or Len(Target.Value) = 0 Then
>>>
>>> Range("E3").Locked = False
>>>
>>> Else
>>>
>>> Range("E3").Locked = True
>>>
>>> End If
>>>
>>>     End If****
>>>
>>> Me.Protect
>>>
>>> End Sub
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> *From:* excel-macros@googlegroups.com [mailto:
>>> excel-macros@googlegroups.com] *On Behalf Of *ITP Abdulgani Shaikh
>>> *Sent:* Apr/Sat/2012 12:23
>>> *To:* excel-macros@googlegroups.com
>>> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
>>> unlock
>>>
>>> ** **
>>>
>>> Pl.find attached sample file
>>>
>>> On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh <
>>> itpabdulg...@gmail.com> wrote:
>>>
>>> Dear Freinds, 
>>>
>>> ** **
>>>
>>> Please help me on following issue
>>>
>>> ** **
>>>
>>> My worksheet is protected, out of all cells, some cells are unprotected
>>> for entering data.
>>>
>>> If I am entering data in Cell C3 then Cell E3 should be auto unlock the
>>> cell.
>>>
>>> and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
>>> auto locked.
>>>
>>> ** **
>>>
>>> Regards
>>>
>>> ** **
>>>
>>> --
>>> FORUM RULES (986+ members already BANNED for violation)
>>>
>>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>>> signatures are prohibited.
>>>
>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>> Forum owners and members are not responsible for any loss.
>>>
>>>
>>> --
>>> To post to this group, send email to excel-macros@googlegroups.com
>>>
>>>
>>>
>>> 
>>>
>>> ** **
>>>
>>> --
>>> Shaikh AbdulGani A R
>>> ITP, STP, TRP, STRP
>>>
>>> --
>>> FORUM RULES (986+ members already BANNED for violation)
>>>
>>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>>> signatures are prohibited.
>>>
>>

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-14 Thread dguillett1
Provide your file with examples.


Don Guillett
Microsoft MVP Excel
SalesAid Software
dguille...@gmail.com

From: ITP Abdulgani Shaikh 
Sent: Saturday, April 14, 2012 1:49 AM
To: excel-macros@googlegroups.com 
Subject: $$Excel-Macros$$ If date in One then another cell to be unlock

Dear Freinds, 

Please help me on following issue

My worksheet is protected, out of all cells, some cells are unprotected for 
entering data.
If I am entering data in Cell C3 then Cell E3 should be auto unlock the cell.
and if there is no data in Cell C3 or zero in C3 then Cell E3 should be auto 
locked.

Regards

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 
--
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

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)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


RE: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-14 Thread Rajan_Verma
You need to paste it in worksheet code module.

 

Rajan.

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of Abdulgani Shaikh
Sent: Apr/Sat/2012 02:03
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock

 

I have pasted this in Excel, but it is not working, pl.find attached file,
where i am wrong ?

Regards

 

On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma 
wrote:

Hi,

You can try this :

 

Private Sub Worksheet_Change(ByVal Target As Range)

 

If Target.Address = "$C$3" Then

Me.Unprotect

If Target.Value = 0 Or Len(Target.Value) = 0 Then

Range("E3").Locked = False

Else

Range("E3").Locked = True

End If

End If

Me.Protect

End Sub

 

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of ITP Abdulgani Shaikh
Sent: Apr/Sat/2012 12:23
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock

 

Pl.find attached sample file

On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh
 wrote:

Dear Freinds, 

 

Please help me on following issue

 

My worksheet is protected, out of all cells, some cells are unprotected for
entering data.

If I am entering data in Cell C3 then Cell E3 should be auto unlock the
cell.

and if there is no data in Cell C3 or zero in C3 then Cell E3 should be auto
locked.

 

Regards

 

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com





 

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

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

 

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-15 Thread Abdulgani Shaikh
I have pasted it in worksheet code module, but it is not working, pl tell
me where I am wrong ?  File is attached herewith.

Regards

On Sun, Apr 15, 2012 at 8:52 AM, Rajan_Verma wrote:

> You need to paste it in worksheet code module.
>
> ** **
>
> Rajan.
>
> ** **
>
> *From:* excel-macros@googlegroups.com [mailto:
> excel-macros@googlegroups.com] *On Behalf Of *Abdulgani Shaikh
> *Sent:* Apr/Sat/2012 02:03
>
> *To:* excel-macros@googlegroups.com
> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
> unlock
>
> ** **
>
> I have pasted this in Excel, but it is not working, pl.find attached file,
> where i am wrong ?
>
> Regards
>
> ** **
>
> On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma 
> wrote:
>
> Hi,
>
> You can try this :
>
>  
>
> Private Sub Worksheet_Change(ByVal Target As Range)
>
>  
>
> If Target.Address = "$C$3" Then
>
> Me.Unprotect
>
> If Target.Value = 0 Or Len(Target.Value) = 0 Then
>
> Range("E3").Locked = False
>
> Else
>
> Range("E3").Locked = True
>
> End If
>
> End If
>
> Me.Protect
>
> End Sub
>
>  
>
>  ****
>
> *From:* excel-macros@googlegroups.com [mailto:
> excel-macros@googlegroups.com] *On Behalf Of *ITP Abdulgani Shaikh
> *Sent:* Apr/Sat/2012 12:23
> *To:* excel-macros@googlegroups.com
> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
> unlock
>
>  
>
> Pl.find attached sample file
>
> On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh <
> itpabdulg...@gmail.com> wrote:
>
> Dear Freinds, 
>
>  
>
> Please help me on following issue
>
>  
>
> My worksheet is protected, out of all cells, some cells are unprotected
> for entering data.
>
> If I am entering data in Cell C3 then Cell E3 should be auto unlock the
> cell.
>
> and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
> auto locked.
>
>  
>
> Regards
>
>  
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> --
> To post to this group, send email to excel-macros@googlegroups.com
>
>
>
> 
>
>  
>
> --
> Shaikh AbdulGani A R
> ITP, STP, TRP, STRP
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> --
> To post to this group, send email to excel-macros@googlegroups.com
>
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 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) Cross-promotio

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-15 Thread Abdulgani Shaikh
Pl.reply

On Sat, Apr 14, 2012 at 2:02 PM, Abdulgani Shaikh wrote:

> I have pasted this in Excel, but it is not working, pl.find attached file,
> where i am wrong ?
> Regards
>
>
> On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma wrote:
>
>> Hi,
>>
>> You can try this :
>>
>> ** **
>>
>> Private Sub Worksheet_Change(ByVal Target As Range)
>>
>> ** **
>>
>> If Target.Address = "$C$3" Then
>>
>> Me.Unprotect
>>
>> If Target.Value = 0 Or Len(Target.Value) = 0 Then
>>
>> Range("E3").Locked = False
>>
>> Else
>>
>> Range("E3").Locked = True
>>
>> End If
>>
>> End If
>>
>> Me.Protect
>>
>> End Sub
>>
>> ** **
>>
>> ** **
>>
>> *From:* excel-macros@googlegroups.com [mailto:
>> excel-macros@googlegroups.com] *On Behalf Of *ITP Abdulgani Shaikh
>> *Sent:* Apr/Sat/2012 12:23
>> *To:* excel-macros@googlegroups.com
>> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
>> unlock
>>
>> ** **
>>
>> Pl.find attached sample file
>>
>> On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh <
>> itpabdulg...@gmail.com> wrote:
>>
>> Dear Freinds, 
>>
>> ** **
>>
>> Please help me on following issue
>>
>> ** **
>>
>> My worksheet is protected, out of all cells, some cells are unprotected
>> for entering data.
>>
>> If I am entering data in Cell C3 then Cell E3 should be auto unlock the
>> cell.
>>
>> and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
>> auto locked.
>>
>> ** **
>>
>> Regards
>>
>> ** **
>>
>> --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> --
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>>
>>
>> 
>>
>> ** **
>>
>> --
>> Shaikh AbdulGani A R
>> ITP, STP, TRP, STRP
>>
>> --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>> signatures are prohibited.
>>
>> NOTE : Don't ever post personal or confidential data in a workbook. Forum
>> owners and members are not responsible for any loss.
>>
>>
>> --
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>> --
>> FORUM RULES (986+ members already BANNED for violation)
>>
>> 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) Cross-promotion of

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-15 Thread dguillett1
If your request is for a reply, I did reply.

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguille...@gmail.com

From: Abdulgani Shaikh 
Sent: Saturday, April 14, 2012 5:18 AM
To: excel-macros@googlegroups.com 
Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock

Pl.reply


On Sat, Apr 14, 2012 at 2:02 PM, Abdulgani Shaikh  
wrote:

  I have pasted this in Excel, but it is not working, pl.find attached file, 
where i am wrong ? 
  Regards



  On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma  
wrote:

Hi,

You can try this :



Private Sub Worksheet_Change(ByVal Target As Range)



If Target.Address = "$C$3" Then

Me.Unprotect

If Target.Value = 0 Or Len(Target.Value) = 0 Then

Range("E3").Locked = False

Else

Range("E3").Locked = True

End If

End If

Me.Protect

End Sub





From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] 
On Behalf Of ITP Abdulgani Shaikh
Sent: Apr/Sat/2012 12:23
To: excel-macros@googlegroups.com
    Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock



Pl.find attached sample file

On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh 
 wrote:

Dear Freinds, 



Please help me on following issue



My worksheet is protected, out of all cells, some cells are unprotected for 
entering data.

If I am entering data in Cell C3 then Cell E3 should be auto unlock the 
cell.

and if there is no data in Cell C3 or zero in C3 then Cell E3 should be 
auto locked.



Regards



-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com







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

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com



-- 
FORUM RULES (986+ members already BANNED for violation)
 
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 meas

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-16 Thread Abdulgani Shaikh
Thanks a lot Sir, I am updating my sheets and will get back to you.
Regards

On Sun, Apr 15, 2012 at 10:13 PM, dguillett1  wrote:

>   If your request is for a reply, I did reply.
>
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> dguille...@gmail.com
>
>  *From:* Abdulgani Shaikh 
> *Sent:* Saturday, April 14, 2012 5:18 AM
> *To:* excel-macros@googlegroups.com
> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
> unlock
>
> Pl.reply
>
>
> On Sat, Apr 14, 2012 at 2:02 PM, Abdulgani Shaikh 
> wrote:
>
>> I have pasted this in Excel, but it is not working, pl.find attached
>> file, where i am wrong ?
>> Regards
>>
>>
>> On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma 
>> wrote:
>>
>>>  Hi,
>>>
>>> You can try this :
>>>
>>> 
>>>
>>> Private Sub Worksheet_Change(ByVal Target As Range)
>>>
>>> 
>>>
>>> If Target.Address = "$C$3" Then
>>>
>>> Me.Unprotect
>>>
>>> If Target.Value = 0 Or Len(Target.Value) = 0 Then
>>>
>>> Range("E3").Locked = False
>>>
>>> Else
>>>
>>> Range("E3").Locked = True
>>>
>>>     End If****
>>>
>>> End If
>>>
>>> Me.Protect
>>>
>>> End Sub
>>>
>>> 
>>>
>>> 
>>>
>>> *From:* excel-macros@googlegroups.com [mailto:
>>> excel-macros@googlegroups.com] *On Behalf Of *ITP Abdulgani Shaikh
>>> *Sent:* Apr/Sat/2012 12:23
>>> *To:* excel-macros@googlegroups.com
>>> *Subject:* Re: $$Excel-Macros$$ If date in One then another cell to be
>>> unlock
>>>
>>> 
>>>
>>> Pl.find attached sample file
>>>
>>> On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh <
>>> itpabdulg...@gmail.com> wrote:
>>>
>>> Dear Freinds, 
>>>
>>> 
>>>
>>> Please help me on following issue
>>>
>>> 
>>>
>>> My worksheet is protected, out of all cells, some cells are unprotected
>>> for entering data.
>>>
>>> If I am entering data in Cell C3 then Cell E3 should be auto unlock the
>>> cell.
>>>
>>> and if there is no data in Cell C3 or zero in C3 then Cell E3 should be
>>> auto locked.
>>>
>>> 
>>>
>>> Regards
>>>
>>> 
>>>
>>> --
>>> FORUM RULES (986+ members already BANNED for violation)
>>>
>>> 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) Cross-promotion of, or links to, forums competitive to this forum in
>>> signatures are prohibited.
>>>
>>> NOTE : Don't ever post personal or confidential data in a workbook.
>>> Forum owners and members are not responsible for any loss.
>>>
>>>
>>> --
>>> To post to this group, send email to excel-macros@googlegroups.com
>>>
>>>
>>>
>>> 
>>>
>>> 
>>>
>>> --
>>> Shaikh AbdulGani A R
>>> ITP, STP, TRP, STRP
>>>
>>> --
>>> FORUM RULES (986+ members already BANNED for violation)
>>>
>>> 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) Cross-promotion of, or links to, forums competitive to this fo

Re: $$Excel-Macros$$ If date in One then another cell to be unlock

2012-04-16 Thread dguillett1
Did you NOT get this

Private Sub Worksheet_Change(ByVal Target As Range)
'SalesAidSoftware dguille...@gmail.com
Application.EnableEvents = True
  If Target.Address = "$C$3" Then
Me.Unprotect

With Range("E3")
 If Target = 0 Or Len(Application.Trim(Target)) = 0 Then
   .Locked = True
 Else
   .Locked = False
   .Select
 End If
End With
 
  Me.Protect
  End If
 
End Sub

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguille...@gmail.com

From: Abdulgani Shaikh 
Sent: Saturday, April 14, 2012 5:18 AM
To: excel-macros@googlegroups.com 
Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock

Pl.reply


On Sat, Apr 14, 2012 at 2:02 PM, Abdulgani Shaikh  
wrote:

  I have pasted this in Excel, but it is not working, pl.find attached file, 
where i am wrong ? 
  Regards



  On Sat, Apr 14, 2012 at 12:38 PM, Rajan_Verma  
wrote:

Hi,

You can try this :



Private Sub Worksheet_Change(ByVal Target As Range)



If Target.Address = "$C$3" Then

Me.Unprotect

If Target.Value = 0 Or Len(Target.Value) = 0 Then

Range("E3").Locked = False

Else

Range("E3").Locked = True

End If

End If

Me.Protect

End Sub





From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] 
On Behalf Of ITP Abdulgani Shaikh
Sent: Apr/Sat/2012 12:23
    To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ If date in One then another cell to be unlock



Pl.find attached sample file

On Sat, Apr 14, 2012 at 12:19 PM, ITP Abdulgani Shaikh 
 wrote:

Dear Freinds, 



Please help me on following issue



My worksheet is protected, out of all cells, some cells are unprotected for 
entering data.

If I am entering data in Cell C3 then Cell E3 should be auto unlock the 
cell.

and if there is no data in Cell C3 or zero in C3 then Cell E3 should be 
auto locked.



Regards



-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com







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

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)
 
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) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com



-- 
FORUM RUL