Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Restrict Prompting for Macro Security

Hello,

I was wondering if there was a way to make it to where no one is prompted to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only Me.

The sitch is that I have macros in my workbook and when it's opened ppl are
being prompted to enable them or disable them. I was looking for a way that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Restrict Prompting for Macro Security

Set their macro security level to High.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Rob" wrote in message
...
Hello,

I was wondering if there was a way to make it to where no one is prompted
to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only
Me.

The sitch is that I have macros in my workbook and when it's opened ppl
are
being prompted to enable them or disable them. I was looking for a way
that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob



  #3   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 145
Default Restrict Prompting for Macro Security

Rob,

I think that is kind of the whole point of the message! i could be wrong,
but if you could suppress that message, i'm sure it would be a security
risk. I think you can get around it using certification, but that just
creates a different set of problems if you're trying to distribute the
spreadsheet (which is what i think you are trying to do).

If someone knows otherwise, i'd be interested to know how!

Tim


"Rob" wrote in message
...
Hello,

I was wondering if there was a way to make it to where no one is prompted
to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only
Me.

The sitch is that I have macros in my workbook and when it's opened ppl
are
being prompted to enable them or disable them. I was looking for a way
that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob



  #4   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 145
Default Restrict Prompting for Macro Security

Sorry - i completely mis-read your question... i thought you were trying to
get people to run the macros. don't listen to me, listen to Bob!


"Tim" <tmarsh-trousers-@-take off my trousers to reply-blueyonder.co.uk
wrote in message ...
Rob,

I think that is kind of the whole point of the message! i could be wrong,
but if you could suppress that message, i'm sure it would be a security
risk. I think you can get around it using certification, but that just
creates a different set of problems if you're trying to distribute the
spreadsheet (which is what i think you are trying to do).

If someone knows otherwise, i'd be interested to know how!

Tim


"Rob" wrote in message
...
Hello,

I was wondering if there was a way to make it to where no one is prompted
to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only
Me.

The sitch is that I have macros in my workbook and when it's opened ppl
are
being prompted to enable them or disable them. I was looking for a way
that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros
are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Restrict Prompting for Macro Security

On Aug 14, 11:23 am, Rob wrote:
Hello,

I was wondering if there was a way to make it to where no one is prompted to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only Me.

The sitch is that I have macros in my workbook and when it's opened ppl are
being prompted to enable them or disable them. I was looking for a way that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob


Are the other users opening the book read only? If so you could have
code identify the user and then if it is not you delete all of the
code from the workbook. The user will still get the prompt but will
not be able to see your code.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Restrict Prompting for Macro Security

That's kinda scary to me. I think I'd try putting something in the
Workbook_Open to check for the user name and if it's not the OP, set the
Public AUtoSec as MSOAutomationSecurity

AutoSec = application.AutomationSecurity
Application.AutomationSecurity = msoAutomationSecurityForceDisable

In the Workbook_Close event, I'd reset

Application.AutomationSecurity = AutoSec

--
HTH,
Barb Reinhardt



"Rob" wrote:

On Aug 14, 11:23 am, Rob wrote:
Hello,

I was wondering if there was a way to make it to where no one is prompted to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only Me.

The sitch is that I have macros in my workbook and when it's opened ppl are
being prompted to enable them or disable them. I was looking for a way that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob


Are the other users opening the book read only? If so you could have
code identify the user and then if it is not you delete all of the
code from the workbook. The user will still get the prompt but will
not be able to see your code.

  #7   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Restrict Prompting for Macro Security

Thank You that does the trick. And yes I should have clarified that I simply
do not want people to be able to alter the code so I'd like them to not have
to worry about being prompted over and over again when they open it.

"Barb Reinhardt" wrote:

That's kinda scary to me. I think I'd try putting something in the
Workbook_Open to check for the user name and if it's not the OP, set the
Public AUtoSec as MSOAutomationSecurity

AutoSec = application.AutomationSecurity
Application.AutomationSecurity = msoAutomationSecurityForceDisable

In the Workbook_Close event, I'd reset

Application.AutomationSecurity = AutoSec

--
HTH,
Barb Reinhardt



"Rob" wrote:

On Aug 14, 11:23 am, Rob wrote:
Hello,

I was wondering if there was a way to make it to where no one is prompted to
"Enable" or "Disable" Macros to the Workbook - Except if the user is only Me.

The sitch is that I have macros in my workbook and when it's opened ppl are
being prompted to enable them or disable them. I was looking for a way that
makes it to whaere only I am able to access/enable the macros and have
everyone else not even be able to have the choice. This way the macros are
inactive and unusable to everyone except for me.

Thanks in Advance.
Rob


Are the other users opening the book read only? If so you could have
code identify the user and then if it is not you delete all of the
code from the workbook. The user will still get the prompt but will
not be able to see your code.

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
Excel Macro Prompting crusse04 Excel Programming 2 June 12th 08 09:11 PM
Macro Examples for prompting info Patches Excel Programming 1 May 9th 07 07:25 PM
Save file without prompting in Excel Macro [email protected] Excel Programming 2 November 16th 06 04:01 PM
Excel Macro Save CSV Cell without Prompting [email protected] Excel Discussion (Misc queries) 1 November 16th 06 03:59 PM
Prompting 'Save As' in an Excel Macro Glenn Gooding Excel Programming 1 December 2nd 04 09:49 AM


All times are GMT +1. The time now is 07:09 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"