#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default macro protection

Hi!

Is it possible to protect a macro to prohibit people to run it?
--
Lois
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default macro protection

May be you can ask for a password within the macro...

I assume you know how to protect VBE..

If this post helps click Yes
---------------
Jacob Skaria


"Lois" wrote:

Hi!

Is it possible to protect a macro to prohibit people to run it?
--
Lois

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default macro protection

I can protect the viewing of the macro, however i am wondering if i can
prohibit the RUNNING of it??
--
Lois


"Lois" wrote:

Hi!

Is it possible to protect a macro to prohibit people to run it?
--
Lois

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default macro protection

1. You can get the user name using the below and then match it aganist a set
of users who need to use your macros. So within the macro you can 'End' the
procedure if the user is not valid.
strUserName = Environ("Username")

2. Within the macro itself (in the beiginning of the procedure) you can ask
the user to enter a password and validate whether the user is allowed to...


If this post helps click Yes
---------------
Jacob Skaria


"Lois" wrote:

I can protect the viewing of the macro, however i am wondering if i can
prohibit the RUNNING of it??
--
Lois


"Lois" wrote:

Hi!

Is it possible to protect a macro to prohibit people to run it?
--
Lois

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 protection albertmb Excel Discussion (Misc queries) 4 January 1st 09 10:37 AM
Protection macro Neil Pearce Excel Discussion (Misc queries) 4 October 24th 08 09:56 AM
Macro and row protection RoyG Excel Discussion (Misc queries) 1 February 19th 08 12:05 AM
Protection Macro Spheon Excel Discussion (Misc queries) 5 July 29th 06 01:16 PM
Macro Protection fodman New Users to Excel 3 June 24th 06 10:01 PM


All times are GMT +1. The time now is 06:28 PM.

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

About Us

"It's about Microsoft Excel"