How to make an Excel file that is limited to open on a computer and other computers cannot open the Excel file.
This has to be done with the help of VBA code.
Just add the following code to the event that the workbook opens.
Private Sub Workbook_Open ()
application.screenupdating = False
On Error GoTo 100
Workbooks.Open Thisworkbook.path & "/validation. XLS "
MsgBox "You have no right to use the document."
application.screenupdating = True