Hi
You could use this:
Private Sub Workbook_Open()
' use ?Environ("Computername") in Immediate window to to get computer name
If Environ("Computername") <> "MyComputerName" Then ActiveWorkbook.Close
SaveChanges:=False
End Sub
Regards,
Per
"Fan924" <a924fan RemoveThis @yahoo.com> skrev i meddelelsen
news:0b8d6d02-a71a-4b8a-9dfc-4a561c672b22@k2g2000yql.googlegroups.com...
>I am trying to create a excel worksheet that will only work on one
> users pc. Oh no, not that again! I have read much of the archives
> here..
>
> I am not looking for something bullet proof. I just want to make it
> difficult for the average user to pass around worksheet copies. If I
> can key a macro to detect something that is unique in every users pc.
> Ideas?