I
icestationzbra
hello,
wishing everyone a very prosperous and happy new year.
i have created a workbook that has username validation and that is to
be used over a network.
all the background macros run and thus validate the username only when
macros are enabled. if someone disables macros, they could easily
tamper with the workbook.
hence, i hid sheets in the workbook and protected the structure of the
workbook with a password. in the workbook_open event i would provide
the password and unhide the sheets (xlsheetvisible). again, in the
workbook_beforeclose event i would use "xlveryhidden" to hide the
structure with a password.
this way if macros are disabled, sheets would not be visible. only when
macros are enabled sheets would be visible and thus liable to be
validated for usage.
this method works very erratically. it sometimes works and at
othertimes it keeps all the sheets visible.
please help me in this regard.
thanks,
ali mac.
wishing everyone a very prosperous and happy new year.
i have created a workbook that has username validation and that is to
be used over a network.
all the background macros run and thus validate the username only when
macros are enabled. if someone disables macros, they could easily
tamper with the workbook.
hence, i hid sheets in the workbook and protected the structure of the
workbook with a password. in the workbook_open event i would provide
the password and unhide the sheets (xlsheetvisible). again, in the
workbook_beforeclose event i would use "xlveryhidden" to hide the
structure with a password.
this way if macros are disabled, sheets would not be visible. only when
macros are enabled sheets would be visible and thus liable to be
validated for usage.
this method works very erratically. it sometimes works and at
othertimes it keeps all the sheets visible.
please help me in this regard.
thanks,
ali mac.