PC Review


Reply
Thread Tools Rate Thread

Check box problem Excel 2003

 
 
dow
Guest
Posts: n/a
 
      11th Dec 2007
I have placed several check boxes on a spread sheet using the Forms toolbar.
The spread sheet is read only and protected. The check boxes can still be
selected and moved or deleted. How can this be prevented? Below is the macro
that I am using:

Private Sub Button1_Click()
Range("G1,L9,I13,I14,I15,L22,L34,J36,J38,K44,K45,K46,K47,K58,L75,L79,K82,L99").Select
Selection.ClearContents
Range("l9").Select
Dim cb As CheckBox

For Each cb In ActiveSheet.CheckBoxes
cb.Value = False
Next cb

End Sub
The spread sheet will also be used on Excel 97.
Any assistance would be appreciated.
--
dow
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      11th Dec 2007
In xl2003, you can protect the worksheet and not allow the users to edit
objects.

Tools|Proection|protect sheet
at the bottom of that list, make sure "Edit Objects" is not checked.

This granular level of protection was added in xl2002. In xl97, there were 3
(if I remember correctly) options on that protect sheet dialog.

One of them is for objects--I'm not sure if you checked the box if you want them
protected or if you wanted to allow users to be able to change them. But it
shouldn't be too difficult to test.

dow wrote:
>
> I have placed several check boxes on a spread sheet using the Forms toolbar.
> The spread sheet is read only and protected. The check boxes can still be
> selected and moved or deleted. How can this be prevented? Below is the macro
> that I am using:
>
> Private Sub Button1_Click()
> Range("G1,L9,I13,I14,I15,L22,L34,J36,J38,K44,K45,K46,K47,K58,L75,L79,K82,L99").Select
> Selection.ClearContents
> Range("l9").Select
> Dim cb As CheckBox
>
> For Each cb In ActiveSheet.CheckBoxes
> cb.Value = False
> Next cb
>
> End Sub
> The spread sheet will also be used on Excel 97.
> Any assistance would be appreciated.
> --
> dow


--

Dave Peterson
 
Reply With Quote
 
dow
Guest
Posts: n/a
 
      11th Dec 2007
Dave,

Problem solved. Thank you for your help.
--
dow


"Dave Peterson" wrote:

> In xl2003, you can protect the worksheet and not allow the users to edit
> objects.
>
> Tools|Proection|protect sheet
> at the bottom of that list, make sure "Edit Objects" is not checked.
>
> This granular level of protection was added in xl2002. In xl97, there were 3
> (if I remember correctly) options on that protect sheet dialog.
>
> One of them is for objects--I'm not sure if you checked the box if you want them
> protected or if you wanted to allow users to be able to change them. But it
> shouldn't be too difficult to test.
>
> dow wrote:
> >
> > I have placed several check boxes on a spread sheet using the Forms toolbar.
> > The spread sheet is read only and protected. The check boxes can still be
> > selected and moved or deleted. How can this be prevented? Below is the macro
> > that I am using:
> >
> > Private Sub Button1_Click()
> > Range("G1,L9,I13,I14,I15,L22,L34,J36,J38,K44,K45,K46,K47,K58,L75,L79,K82,L99").Select
> > Selection.ClearContents
> > Range("l9").Select
> > Dim cb As CheckBox
> >
> > For Each cb In ActiveSheet.CheckBoxes
> > cb.Value = False
> > Next cb
> >
> > End Sub
> > The spread sheet will also be used on Excel 97.
> > Any assistance would be appreciated.
> > --
> > dow

>
> --
>
> Dave Peterson
>

 
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
use check box created in Excel 2003 opened in Excel 2007 TommyB Microsoft Excel Worksheet Functions 1 21st Feb 2009 02:01 AM
Microsoft Excel 2003 - Help with Catalog set up / Check out mr19th Microsoft Excel Worksheet Functions 1 16th Dec 2008 05:41 PM
How do I add check boxes in Excel 2003? Noah Microsoft Excel Misc 1 11th Jan 2008 04:30 PM
How can I add a medical spell check to excel 2003? =?Utf-8?B?TGFjZXk=?= Microsoft Excel New Users 1 14th Aug 2007 11:04 AM
Excel 2003 Spell Check =?Utf-8?B?TGVl?= Microsoft Excel Misc 0 24th Apr 2006 02:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.