Allow Users To View Formula Bar If Worksheet protected - excel-formula

Sometimes ago I faced with the following problem:
I have protected Worksheets and formulas in cells. So, I haven't opportunity to view formulas in formulas Bar(with lighting).
Thereby, does it really to allow users view formulas in formulas bar if Worksheet protected.

Two conditions are required:
When formatting the cells leave the Hidden property uncheck in the Protection tab (see fig. 1)
When protecting the worksheet check the Select locked cells property (see fig. 2)

Related

Password protect Excel sheet but allow editing

I have built an excel spreadsheet that pulls data from another sheet by various Vlookup. E.g if you type in a number in one cell it pulls back the corresponding Name, job, title etc from the data in the other sheet.
As this is to be used by others I wanted to Hide the formula so it’s not visible in the formula bar.
I unlocked all the cells, selected the cells with formula I wanted to hide, locked and hid those cells then protected the sheet. When testing I can enter data in the unlocked field and get results but I also have a reset macro button. When I reset the fields I am unable to enter data as the sheet is protected. Any help on what I might be doing wrong?

Is there a way to lock individual cells (not the entire Excel worksheet) to prevent formatting?

I'm preventing the user from formatting cells in a worksheet in a generated Excel file by executing this code:
XSSFWorkbook workbook = new XSSFWorkbook();
XSSFSheet sheet = workbook.createSheet("sheet1");
CTSheetProtection prot = sheet.getCTWorksheet().getSheetProtection();
prot.setFormatCells(true);
Is there a way to lock formatting for individual cells in a sheet as opposed to having to lock formatting for the entire sheet?
Likewise, is there a way to apply the other protections to individual cells?
For example, filtering and sorting - if someone tried to apply these operations on a group of cells that included a cell that was locked for that operation it would be disallowed.
In the Format Cells dialog box you can toggle cells locked or hidden. When you use "Protect Sheet" From the Review tab you can choose to protect the worksheet and the contents of locked cells, and choose what you want to allow the user to do to locked/unlocked cells. Password protect the sheet and users will not be able to remove the lock without your permission.
I'm assuming most of your cells are to be unlocked, so select all cells and set to unlocked and then lock the ones you want locked.
I am unsure of the code to do this through VBA, but it should be easy enough to find.
Logically, you would want to select all cells and then set the cells.format.protection.locked to false, and then select the ranges you want locked and set those to true. You could easily record a macro to find this code.
you should check this link, I have written a custom method to lock individual or range of cells in single or multi sheet excel file.
https://stackoverflow.com/a/63299413/6835092
for single cell locking just mention same range value. i.e a1:a1. this will lock only a1 cell.

Protect Datasheet with regard to cell fomat/border

Hello Excle'rs and Vba'ers,
I'd like to know if it's possible to set certain limitations protecting the excel datasheet with an password. My protected excel sheet has a certain "unprotected" range of cells, where the user can fill in data.
Unfortunately I want to limitate the user to only fill in data, BUT NOT change the background color or border size of those cells. Is this possible? Maybe with some VBA code?
Thank you!
If I understand you correctly, then there is a way.
Step 1) Select the cells you want the user to be able to fill data into and then format those cells such that they have an UNCHECKED "Locked" property.
Step 2) Right click the worksheet's tab and select "Protect Sheet..."
Step 3) Make sure "Select unlocked cells" is checked and "Format cells" is UNCHECKED. Here's how that might look:
Now your worksheet should be locked, yet users can still enter data into the cells you "unlocked" in step 1. But they cannot change the fill or border situation of any cells in the worksheet, because they cannot format any cells in the worksheet.

Hide formulas in excel without protecting the sheet

I need to hid the formulas in my sheet without protecting the sheet,say i have sheet 1 in that i need to hide the formulas from range(A1:G10) i can hide the formula but iam not able to provide input for the whole sheet
My requirement is to hide the selected cells formulas and able to give inputs for other cells in the same sheet how can i achieve this.
Select the whole sheet, right click and then select Format Cells.... In the popup window, select Protection tab. Unselect both options and press OK button. This will unlock all cells on the sheet as by default all cells are locked. Next, select your range, repeat the above process again but this time ensure that both options (Locked and Hidden) are selected this time and press OK. Now protect your sheet (in Excel 2013, select the REVIEW tab and select Protect Sheet option and follow the steps).
This will hide your formulas and stop anyone changing the values in the protected cells

Allow Copy/Paste and change font in an unlocked cell of a locked Excel sheet

I am creating a template in excel where I only want the user to be able to enter information in some of the cells. For that reason I have locked some cells and unlocked some others and I have also protect the corresponding sheet.
The user wants to be able to copy information from other excel sheet to one of the unlocked cells of the template and be able to change the format of the pasted text, being bold and underline options avaliable.
Is there any way to do that without having to unlock the sheet?
Thank you in advance for your time.
There are options when you apply protection to the sheet to still allow formatting.
There is no issue copying and pasting into a locked cell as far as I am aware.
There is an option when you apply protection to a worksheet in Excel to allow "Format Cells". Choose this if you want them to be able to apply formatting to the cell. Likewise, Format Rows and Format Columns if you want the user to be able top adjust the row height and column width.

Resources