Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default macro security

I created a vba macro that works great. It lives in a workbook that is
shared among users. In trouble shooting why it didn't always work, I found
out that some users have their macro seurity set to high. I figure there are
2 options.

1) write a macro that tests to see what the macro security is, and if it is
set to high, pop up a message with instructions to the user to lower it
2) the "very high" description reads. "Only macros installed in trusted
locations will e allowed to run." Seems to me that the most complete
solution would be to figure out what this means, make sure my macro "lives"
there (whatever that means) and then it should work for all.

What does it mean by trusted locations? Is this the Internet Options,
Trusted Sites? I thought that was for web sites only.

thx

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default macro security

The purpose of that excel message is to prevent macros from running unless
the user allows it. Therefore, you can't write a macro to test for the
security because security won't run the macro.

I usually have the workbook set to a certain sheet before closing. On that
sheet i'll have instructions that say some functions of the workbook won't be
available unless macros are enabled. Give instructions on how to enable,
then make sure to tell the user to close the file and reopen it in order to
set the changes.
--
JNW


"xrbbaker" wrote:

I created a vba macro that works great. It lives in a workbook that is
shared among users. In trouble shooting why it didn't always work, I found
out that some users have their macro seurity set to high. I figure there are
2 options.

1) write a macro that tests to see what the macro security is, and if it is
set to high, pop up a message with instructions to the user to lower it
2) the "very high" description reads. "Only macros installed in trusted
locations will e allowed to run." Seems to me that the most complete
solution would be to figure out what this means, make sure my macro "lives"
there (whatever that means) and then it should work for all.

What does it mean by trusted locations? Is this the Internet Options,
Trusted Sites? I thought that was for web sites only.

thx

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default macro security

Thanks JNW. Rats. The macro performs an audit function. It captures name
and userid any time a user updates a row, and writes that to the two end
columns. From a user's point of view, they couldn't care less as the lack of
audit function doesn't impact their ability to do work.

Thanks much

"JNW" wrote:

The purpose of that excel message is to prevent macros from running unless
the user allows it. Therefore, you can't write a macro to test for the
security because security won't run the macro.

I usually have the workbook set to a certain sheet before closing. On that
sheet i'll have instructions that say some functions of the workbook won't be
available unless macros are enabled. Give instructions on how to enable,
then make sure to tell the user to close the file and reopen it in order to
set the changes.
--
JNW


"xrbbaker" wrote:

I created a vba macro that works great. It lives in a workbook that is
shared among users. In trouble shooting why it didn't always work, I found
out that some users have their macro seurity set to high. I figure there are
2 options.

1) write a macro that tests to see what the macro security is, and if it is
set to high, pop up a message with instructions to the user to lower it
2) the "very high" description reads. "Only macros installed in trusted
locations will e allowed to run." Seems to me that the most complete
solution would be to figure out what this means, make sure my macro "lives"
there (whatever that means) and then it should work for all.

What does it mean by trusted locations? Is this the Internet Options,
Trusted Sites? I thought that was for web sites only.

thx

thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro security pm_sam Excel Discussion (Misc queries) 1 December 17th 09 05:28 PM
macro security Bill R Excel Discussion (Misc queries) 0 September 2nd 08 06:39 PM
Avoid Outlook macro security for Excel bades macro blackbox via OfficeKB.com Excel Programming 4 June 15th 07 08:51 AM
Macro security DKS Setting up and Configuration of Excel 7 October 27th 06 11:57 PM
Macro needed to set macro security in Excel to minimum Carl Excel Programming 3 March 18th 06 03:36 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"