Select cells while userform is open - excel

I've made a very simple userform to help some students enter data into a table. It automatically moves down the table. However, if a the data is entered wrong or needs changing, you have to close the form, select the cell, then re-open the userform because you cant select cells with the userform open.
Is there a way (I presume in the properties?) to unlock the spreadsheet to allow to manually change the active cell?

Related

If Vlookup formula can remain there even after running a Macro

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

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?

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

Restrict Header editing in excel

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.

Is it possible to add a logo or other picture in an Excel sheet and lock its position on the sheet?

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.

Resources