I have a excel sheet with package(column)/feature(row) selection matrix. I used check box form control (Developer tab) in individual cell to let customer select what feature goes in what product. All is working fine.
Now I want to lock this sheet for accidental modification.
I tried protect sheet however the check box still open for selection or deselection.
How can I protect check box to get selected or deselected accidentally (password required for modification)?
Sorry not allowed to attach a image here...
Make sure the checkbox is linked to a cell:
Right click the checkbox > Format Control > Control > Cell link
Have the cell the checkbox refers to locked, do this my changing the protection properties of the cell itself:
Right click in the cell > Protection > untick Locked > press OK
Now protect the worksheet.
This should stop any editing of the checkbox control
format text in cell to have the same text color as the background color and you dont see th etrue or false but it is still there to be used in look ups etc.
Related
I would love to activate insertion in one Column in my Excel sheet but diable it in the rest columns . I use Protect sheet but it protects all my sheet.
How Can I make only one column enabled and the rest disabled ?
Thank you in advance !
Select the whole sheet using the very top-left square in the sheet
On the Home tab, in the Alignment group, click the small arrow to open the Format Cells popup window.
On the Protection tab, select the Locked check box, and then click OK to close the popup.
Select the column you wish to be enabled
repeat step 2
On the Protection tab, unselect the Locked check box, and then click OK to close the popup.
On the Review tab in the ribbon, in the Changes group, select Protect Sheet
Partial source https://support.microsoft.com/en-us/office/lock-cells-to-protect-them-cb7835f6-9c37-4161-bb53-d1c410acaf21
I have a program that reads excel sheet with fixed number of columns, each having a header name. How do I restrict users from entering anything at all in the header cells?
I have done this before using the Data Validation tab to pop a validation message when the user enters any other value in the header cell. Not able to recollect how exactly it was done.
Use the Protect Sheet Option
First you will want to select ALL the cells in Excel and go to "Format Cells" and then go to the "Protection" tab. In here, De-select the "Locked" tick box.
Now, Select the cells that you DO want to be locked and repeat the process only this time you will be putting the lock in place.
Now you need to click on the "Review" tab and select "Protect Sheet". You will be prompted for a password to unlock the document. Enter a password and you're done. Save it and re-open it and you will see that you are NOT able to edit the cells that you locked. All other cells are editable.
I have a workbook that has many checkboxes (form control) on one tab. I check the box (Yes/No/NA) based on values in other tabs,. The tab with the checkboxes, is a form that was created, that needs to be printed, but the users cannot click any of the boxes because these decisions are driven by formulas.
I have locked the workbook & unchecked all the boxes in the popup.
So the question is, how do I prevent all the check boxes from being clicked/checked??
AHIA,
LarryR...
For a Form Control:
Right-click and select Format Control...
Select the Protection tab.
Make sure that Locked is checked
Select the Control tab.
Choose a cell in the Cell Link field.
Press OK.
Right-click on the cell that you referenced in step 5.
Select Format Cells...
Select the Protection tab.
Make sure that Locked is checked.
Select Hidden if you don't want users to see it.
Press OK.
Right-Click on the Worksheet Tab
Select Protect Sheet
Make sure that Protect worksheet and contents of locked cells is checked.
That should do it!
Protect the cells with the check-boxes, and when you click on protect Sheet uncheck the Select locked cells from the list of what the users are allowed to do after the document is locked; that way they'll be able to see but not click on those cells.
Got the same issue and ive solved the issue by right click on the sheets and there is a grouping selection, ungroup it and the checkbox works again.
I am looking for a way to add a logo or other picture in an Excel sheet and lock its position on the sheet, so that the user won't get annoyed if he happen to grab it while using.
I tried locking cells, sheet, but nothing seems to work.
I am using Excel 2007.
Not really a programming question but the way to do this is...
Right click the image and choose Size and Properties.
Click Properties tab and under properties,(optional- choose Don't move or size with cells) and ensure the Locked box is checked.
Highlight the cells of the worksheet you want the users to be able to edit, right click inside one of them and choose Format Cells. In the protection tab uncheck the locked checkbox.
Then you can protect the worksheet. Click Home, then Format, then Protect Sheet.
Make sure you unselect Select locked cells, leave the top checkbox selected (Protect worksheet and contents of locked cells) as well as select unlocked cells checked.
Is it possible to have a macro that, when pressed, pops up a message box asking for a string of text, and then a drop down that has a list of categories?
All I would need it to do is take this information and save it into a cell. If so, how?
[I'm going based on Excel 2007 here, but if you're using 2003, you'll have to navigate the menu structure]
Go to the VBE (by going to the View tab, then click on Macro - creating or editing an existing one will take you there - or click Alt+F11).
Go to the Insert menu, and select Userform. Drag a textbox (the ab|icon), and a combobox onto your form. To set the textbox value to a cell when you change the combobox, create a subroutine in the code to do this by double clicking on the combobox.
Set the combobox items by using the .additem method of comboBox1 in your code. These can be delineated or grabbed from a range in your code (see here)
Within that subroutine, set the value of whatever cell you want to textbox1.Text, which is the contents of the textbox.