use cannot change data after closing file

faizee

Board Regular
Joined
Jan 28, 2009
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
Dear Sir,

my user enters data in one file. which has 5 column table..
i want when he/she closes the file after entered all data,. then after that he/she could not change any previouse entry..

only authorised person could do that..


is that possible?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Perhaps putting something like this in the ThisWorkbook code module
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Sheet1.Protect "password", contents:=True
    Me.Save
End Sub
 
Upvote 0
please also guide me how and where to enter it.
 
Upvote 0
Is the sheet's code name correct? Does the re-opened worksheet have a protected sheet?
What are the details of "doesn't work"?
 
Upvote 0

Forum statistics

Threads
1,216,818
Messages
6,132,877
Members
449,765
Latest member
Coffebreak

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