I have the following code(in Workbook_open) which works OK in 32-bit Win7 system but in 64-bit system it returns an error message, compile error in hidden module.
Is there something I need to do differently for 64-bit Win7 system?
Code:
Dim username As String
username = Environ("USERNAME")
If username <> "jack" Then
If username <> "jill" Then ActiveWorkbook.Close True
End If