#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default about protection

Hello

I have made one excel sheet using Macro code for hide some rows with check
box. But i could not protect the sheet. If i protect it , check box doesnot
work. Can you help me to protect sheet .

pmss
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default about protection

Do you mean that the checkbox doesn't work, or the code behind it?

If the former, either check the 'Edit objects' option in the protection
dialog, or use a checkbox from the forms toolbar.

If the latter, unprotect the sheet before your code, then re-protect it
afterwards.

--
---
HTH

Bob


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



"pmss" wrote in message
...
Hello

I have made one excel sheet using Macro code for hide some rows with check
box. But i could not protect the sheet. If i protect it , check box
doesnot
work. Can you help me to protect sheet .

pmss



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default about protection



"Bob Phillips" wrote:

Do you mean that the checkbox doesn't work, or the code behind it?

If the former, either check the 'Edit objects' option in the protection
dialog, or use a checkbox from the forms toolbar.

If the latter, unprotect the sheet before your code, then re-protect it
afterwards.

--
---
HTH

Bob


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



"pmss" wrote in message
...
Hello

I have made one excel sheet using Macro code for hide some rows with check
box. But i could not protect the sheet. If i protect it , check box
doesnot
work. Can you help me to protect sheet .

pmss



Thanks.


Still does not work. I have used following codes for check box.
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then

Rows("18:39").Hidden = False
Else
Rows("18:39").Hidden = True

End If

End Sub

I want to protect this sheet. When i protect the sheet the check box doesnot
work, it gives some error.

Pmss
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default about protection

What doesn't work, I gave many suggestions? You need to be more explicit.

--
---
HTH

Bob


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



"pmss" wrote in message
...


"Bob Phillips" wrote:

Do you mean that the checkbox doesn't work, or the code behind it?

If the former, either check the 'Edit objects' option in the protection
dialog, or use a checkbox from the forms toolbar.

If the latter, unprotect the sheet before your code, then re-protect it
afterwards.

--
---
HTH

Bob


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



"pmss" wrote in message
...
Hello

I have made one excel sheet using Macro code for hide some rows with
check
box. But i could not protect the sheet. If i protect it , check box
doesnot
work. Can you help me to protect sheet .

pmss



Thanks.


Still does not work. I have used following codes for check box.
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then

Rows("18:39").Hidden = False
Else
Rows("18:39").Hidden = True

End If

End Sub

I want to protect this sheet. When i protect the sheet the check box
doesnot
work, it gives some error.

Pmss



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default about protection

hi
check box doesnot work, when i protect the sheet. It gives Run time error
1004.
Unable to set the hidden property of the Range class.
pmss

"Bob Phillips" wrote:

What doesn't work, I gave many suggestions? You need to be more explicit.

--
---
HTH

Bob


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



"pmss" wrote in message
...


"Bob Phillips" wrote:

Do you mean that the checkbox doesn't work, or the code behind it?

If the former, either check the 'Edit objects' option in the protection
dialog, or use a checkbox from the forms toolbar.

If the latter, unprotect the sheet before your code, then re-protect it
afterwards.

--
---
HTH

Bob


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



"pmss" wrote in message
...
Hello

I have made one excel sheet using Macro code for hide some rows with
check
box. But i could not protect the sheet. If i protect it , check box
doesnot
work. Can you help me to protect sheet .

pmss


Thanks.


Still does not work. I have used following codes for check box.
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then

Rows("18:39").Hidden = False
Else
Rows("18:39").Hidden = True

End If

End Sub

I want to protect this sheet. When i protect the sheet the check box
doesnot
work, it gives some error.

Pmss






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default about protection

So did you read my first post?

--
---
HTH

Bob


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



"pmss" wrote in message
...
hi
check box doesnot work, when i protect the sheet. It gives Run time error
1004.
Unable to set the hidden property of the Range class.
pmss

"Bob Phillips" wrote:

What doesn't work, I gave many suggestions? You need to be more explicit.

--
---
HTH

Bob


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



"pmss" wrote in message
...


"Bob Phillips" wrote:

Do you mean that the checkbox doesn't work, or the code behind it?

If the former, either check the 'Edit objects' option in the
protection
dialog, or use a checkbox from the forms toolbar.

If the latter, unprotect the sheet before your code, then re-protect
it
afterwards.

--
---
HTH

Bob


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



"pmss" wrote in message
...
Hello

I have made one excel sheet using Macro code for hide some rows with
check
box. But i could not protect the sheet. If i protect it , check box
doesnot
work. Can you help me to protect sheet .

pmss


Thanks.

Still does not work. I have used following codes for check box.
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then

Rows("18:39").Hidden = False
Else
Rows("18:39").Hidden = True

End If

End Sub

I want to protect this sheet. When i protect the sheet the check box
doesnot
work, it gives some error.

Pmss






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default about protection

Another thing to check...

Do you have a linkedcell to that checkbox? And is that linkedcell locked and
located on a protected worksheet?

Unlock that cell (format|cells|protection tab in xl2003)

pmss wrote:

Hello

I have made one excel sheet using Macro code for hide some rows with check
box. But i could not protect the sheet. If i protect it , check box doesnot
work. Can you help me to protect sheet .

pmss


--

Dave Peterson
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
WS Protection: Different Levels of Protection on Different Ranges Carmi Excel Discussion (Misc queries) 4 August 31st 07 02:26 PM
protection Chi Excel Discussion (Misc queries) 7 November 9th 06 07:17 PM
Cell Protection vs. Worksheet Protection kmwhitt Excel Discussion (Misc queries) 4 September 24th 06 02:37 AM
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
Protection Joe the Toe Excel Worksheet Functions 1 November 25th 04 11:07 AM


All times are GMT +1. The time now is 03:06 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"