Hello to all can anyone help

henry1951

New Member
Joined
Dec 9, 2018
Messages
1
First of all like to say Hello to everyone i am a new here so please be patient with me LOL and at 67 takes a little longer for things to sink in ;)

i have just done a sign in sheet for work staff and i have a command button that puts in the date and time of start of shift and the same for ending the shift the problem i have is how can i stop anyone changing the time in the cells

The command button can only be pressed once then it is disabled until i reset all by another command button

i have tried lots of ways but none seem to let me enter the date and times once the cells are protected

dont know if that make any sense

But thanks in advance if anyone can help
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
The macro would have to unprotect the sheet at the beginning and then re-protect it at the end. Something like this:
Code:
Sub Test()
    ActiveSheet.Unprotect
    'your code here
    ActiveSheet.Protect
End Sub
Without seeing the macros you are using, it is difficult to give you more specific help.
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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