Cell Protection Issue with Userform

kellem80

Board Regular
Joined
Apr 2, 2008
Messages
95
Hi,
I have a user form that the users are supposed to use to enter data to a sheet. the form them inserts data into certain cells in the next available row, while leaving other cells blank for the user to enter the data directly into or the other cells in the row contain formulas.
I would like to prevent the users from directly entering the data on the sheet for the information they are supposed to complete via the userform, since it dates and codes their inputs and the form has the data in the correct nomenclature and formats for entry and for use with formulae throughout the workbook.
I tried using standard cell protection, but when it is on, it also won't accept the data from the form. The sheet is currently password protected for the cells that contain formulas, but not the other cells. (I am willing to change this if somebody can tell me how!)

Thanks!!
Kel
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
leave the sheet protected. In your form code, before you write its values to the worksheet just unprotect first:

sheet1.Unprotect "pw"
'write vaues
sheet1.Protect "pw"
 
Upvote 0
Chris thanks---question, "pw" does that indicate replacing "pw" with the password that I use to protect the sheet?
Thanks!
Kel
 
Upvote 0
Can you please help me how to do this form thing, really wonderful:)
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top