Form data fields - over-typing and protection issues

jambo2018

New Member
Joined
Feb 1, 2018
Messages
1
Good Morning All


I'm having a bit of an issue - i'm updating a form we use for customers (schools) buying in to annual services.


Last year we used this form, but left school details fields as freetext which was good, however the numbers in the pupil headcount were either lower or higher than the schools census data (the data they submit to the local authority to confirm number of pupils at the school) Our charging is based on this number and meant last year we either undercharged or overcharged schools.




My issue is - I need to allow new schools/schools not on the list to be included. I've allowed freetext in data validation for Establishment Name so this field can be overtyped, this means that the other details (Dfe, type, Pupil headcount) can too be overtyped however my problem is that when the other details fields are overtyped they lose the formula. This is fine however if a mistake is made and the school IS actually on the list, the formulas are lost and the cells remain empty if a user then selects from the dropdown list.


I've been looking for perhaps some VBA to add so that if these cells are empty, VBA would re-add the formula back into the cell. Is this possible or is there a better way?


Also another issue I'm experiencing is protecting the fields - I'm trying to also find some VBA so that if these cells are autopopulated (because a school is selected from the dropdown list) then leave them protected (to prevent overtyping) however if the school is not on the list, so the user manually types in their school, these fields need to be unprotected so these details can be entered.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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