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?
Related
I have made a Data Entry form in which i have recorded a macro Using "Use Relative Reference" from developers tab.
I have also added vlookup formula so that if a certain value or word is selected many of the fields being pulled or appears automatically.
I have created a button named as "Save Data" and have recorded a macro in it
After adding all the values (few values manually, few values I pull via Vlookup) whenever i press the button "Save Data" it moves the all values from data entry form to another Main Worksheet.
However the problem is whenever i press the button it also removes the formula of Vlookup and I have to either paste Vlookup formula again or add the values manually. the formula of Vlookup is
=VLOOKUP(C12,Functions!F$2:J$20,3,0)
Can anyone suggest if even after pressing the button and after moving the data the formula should remain there and i do not have to put them manually again and again
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
1 1 2
ACT ACT FCST
I have three columns, I would like to run a loop code to check values in 2nd row if it is ACT or FCST. If it is ACT, it will protect the whole column so it will not be updated.
You don't protect columns, you protect sheet. Cells are set as locked or not locked. Then if the sheet protection is activated, locked cells cannot be edited. So to unlock cells to make them editable, you have to unprotect the sheet, set cells as unlocked then protect the sheet.
Use the macro recorder to help you create code. When you develop code that has issue, post it for analysis.
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.
I have a table in Excel 2007 where certain columns have formulas that are automatically filled downwards into their respective new cells when I insert a new row.
To prevent other users from modifying these columns, I locked them by protecting the sheet.
However, protecting the sheet prevents the formulae from copying down when inserting a new row with the following error:
The cell or chart that you are trying to change is protected and
therefore read-only. To modify a protected cell or chart, first remove
protection using the Unprotect Sheet (Review tab, Changes group). You
may be prompted for a password.
Is it possible to have both features together:
Insert a new row and automatically copy the formulas down
Protect the columns that contains formulas