After Data Entry Lock Cells and Save Data with 2 Options

Jboy64

New Member
Joined
Aug 8, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,
It's a long time since I have used VBA and I'm trying to lock and save a number of cells after data entry via a macro button. The user will have 2 buttons as options-

Option 1:
I want the user to click this button if they want to save Week 1 predictions in cells F11:F25 and H11:H25
Once they have been saved the cells I want them to be locked to stop them amending the scores
If they want to enter predictions for more than one week they can move onto Week 2 as the workbook will remain Open

Option 2:
I want the user to click this button if they want to save Week 1 predictions in cells F11:F25 and H11:H25 BUT
they DO NOT want to enter any further predictions, the cells are locked and the Workbook is Closed

Thanks for any help you can give, John
 

Attachments

  • Screenshot 2024-08-08 at 10.22.25.png
    Screenshot 2024-08-08 at 10.22.25.png
    135.2 KB · Views: 11

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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