Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have written following code to protect my file from beeing used from people who shouldent use it. The problem I have is that you have to activate the macro when you open the file to get it started, so it don't totaly work. Do anyone know howe to solv this? Private Sub Workbook_Open() If Application.OrganizationName = "Min pc" Then MsgBox "Hej " & Application.UserName Else Application.Quit End If End Sub -- I would be wery grateful for yout help! Best regards Mia |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autostart Macro | Excel Discussion (Misc queries) | |||
Autostart | Excel Discussion (Misc queries) | |||
macro to password protect exel file | Excel Programming | |||
Trying to protect output file with Macro | Excel Programming | |||
Autostart | Excel Programming |