Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default disable user running macro from Tools Macro

Help please . . .

I have a macro that I've assigned to a button on a worksheet. I've
protected the VBA code and I only want the users to be able to run the
macro from my button.

How do I disable the user from running the macro from Tools Macro?

TIA

Steve
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default disable user running macro from Tools Macro

Application.Commandbars("Worksheet Menu
Bar").Controls("Tools").Controls("Macro").Enabled= False


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Steve Simons" wrote in message
...
Help please . . .

I have a macro that I've assigned to a button on a worksheet. I've
protected the VBA code and I only want the users to be able to run the
macro from my button.

How do I disable the user from running the macro from Tools Macro?

TIA

Steve



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default disable user running macro from Tools Macro

Bob

Thanks for that, does exactly what I'm after.

Steve

On Fri, 22 Sep 2006 10:06:44 +0100, "Bob Phillips"
wrote:

Application.Commandbars("Worksheet Menu
Bar").Controls("Tools").Controls("Macro").Enabled =False


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default disable user running macro from Tools Macro

Placing the word "Private" before the Sub MacroName in the Code Window
Will eliminate the MacroName from showing up in the Tools, Macro
Window..
I think...
Just Another thought
Jim

" wrote in
message :

Help please . . .

I have a macro that I've assigned to a button on a worksheet. I've
protected the VBA code and I only want the users to be able to run the
macro from my button.

How do I disable the user from running the macro from Tools Macro?

TIA

Steve


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default disable user running macro from Tools Macro

Hi Jim,

Thanks for that also - it works a treat. Both solutions are nice to
know.

Steve


On Fri, 22 Sep 2006 11:57:13 +0000, "Jim May" wrote:

Placing the word "Private" before the Sub MacroName in the Code Window
Will eliminate the MacroName from showing up in the Tools, Macro
Window..
I think...
Just Another thought
Jim

" wrote in
message :

Help please . . .

I have a macro that I've assigned to a button on a worksheet. I've
protected the VBA code and I only want the users to be able to run the
macro from my button.

How do I disable the user from running the macro from Tools Macro?

TIA

Steve


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
Start Macro after user selects a choice from a pick list mathew Excel Discussion (Misc queries) 2 August 17th 06 03:28 PM
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
Running of Worksheet Change Macro breaks undo functionality. Rob Manger Excel Discussion (Misc queries) 1 April 6th 06 04:04 AM
Prevent A Macro From Running If SpreadSheet is Filtered carl Excel Worksheet Functions 1 June 22nd 05 04:04 PM
Disable one Macro with another Macro Andy T Excel Discussion (Misc queries) 1 December 13th 04 12:31 PM


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