ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   show macro security setting in a cell (https://www.excelbanter.com/excel-worksheet-functions/6225-show-macro-security-setting-cell.html)

Mark

show macro security setting in a cell
 
is it possible to show users their macro security setting in a cell? My
workbook has macro in it, so if they don't enable macros or have their
security set to high, the macros won't work. What I'd like to do it show the
user in a cell what his/her security setting is and based on the cell value
(if the macros are disabled), show a warning.

Can this be done?

Frank Kabel

Hi
one way:
1. Create a UDF in your workbook like the following
public function MacroActive() as boolean
MacroActive=True
end function

2. In yur worksheet use the following formula
=IF(ISERROR(MacroActive());"No macros active","everything is ok")

--
Regards
Frank Kabel
Frankfurt, Germany

"Mark" schrieb im Newsbeitrag
...
is it possible to show users their macro security setting in a cell?

My
workbook has macro in it, so if they don't enable macros or have

their
security set to high, the macros won't work. What I'd like to do it

show the
user in a cell what his/her security setting is and based on the cell

value
(if the macros are disabled), show a warning.

Can this be done?



Mark

Thanks very much--works like a charm. Simple and very effective. Thanks again!

"Frank Kabel" wrote:

Hi
one way:
1. Create a UDF in your workbook like the following
public function MacroActive() as boolean
MacroActive=True
end function

2. In yur worksheet use the following formula
=IF(ISERROR(MacroActive());"No macros active","everything is ok")

--
Regards
Frank Kabel
Frankfurt, Germany

"Mark" schrieb im Newsbeitrag
...
is it possible to show users their macro security setting in a cell?

My
workbook has macro in it, so if they don't enable macros or have

their
security set to high, the macros won't work. What I'd like to do it

show the
user in a cell what his/her security setting is and based on the cell

value
(if the macros are disabled), show a warning.

Can this be done?




baat4



"Mark" wrote:

is it possible to show users their macro security setting in a cell? My
workbook has macro in it, so if they don't enable macros or have their
security set to high, the macros won't work. What I'd like to do it show the
user in a cell what his/her security setting is and based on the cell value
(if the macros are disabled), show a warning.

Can this be done?



All times are GMT +1. The time now is 10:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com