#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Macros

Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Macros

Make the Sub Private Sub ................

then the name will not appear in the dialog box.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Macros

I prefer making the module private to the project with

Option Private Module

--
---
HTH

Bob

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



"Sandy Mann" wrote in message
...
Make the Sub Private Sub ................

then the name will not appear in the dialog box.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Macros

"Sandy Mann" wrote in message
...
Make the Sub Private Sub ................


What I actually said doesn't make sense anyway! As Winnie the Poo says,
"Sometimes an idea that seems fine in your mind doesn't look the same when
it is outside and people can walk round it and poke sticks at it."

(XL97) VBA Help doesn't hit me over the head saying that it hides the macro
names although I suppose that it is obvious if you take a second or two to
think about it. Consequently I have never used Option Private Module.

Thanks for the info.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Bob Phillips" wrote in message
...
I prefer making the module private to the project with

Option Private Module

--
---
HTH

Bob

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



"Sandy Mann" wrote in message
...
Make the Sub Private Sub ................

then the name will not appear in the dialog box.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy








  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Macros

Sorry I don't understand - out of my depth - I'll give this a miss for now.

Thanks both anyway.

Sandy

"Bob Phillips" wrote in message
...
I prefer making the module private to the project with

Option Private Module

--
---
HTH

Bob

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



"Sandy Mann" wrote in message
...
Make the Sub Private Sub ................

then the name will not appear in the dialog box.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Macros

I'm not surprised that you could not understand my post but to use Bob's
suggestion press and hold the Alt key whaile you press the f11 function key
above the QWERTY keyboard. This will take you into VBA. In each module
place the cursor in to the left of the first Sub and type in
option private module
then press the Enter key and the job is done.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Sorry I don't understand - out of my depth - I'll give this a miss for
now.

Thanks both anyway.

Sandy

"Bob Phillips" wrote in message
...
I prefer making the module private to the project with

Option Private Module

--
---
HTH

Bob

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



"Sandy Mann" wrote in message
...
Make the Sub Private Sub ................

then the name will not appear in the dialog box.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy









  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Macros

Sorry didn't realise you had re-posted. Works well. Thank you
Sandy

"Sandy Mann" wrote in message
...
I'm not surprised that you could not understand my post but to use Bob's
suggestion press and hold the Alt key whaile you press the f11 function
key above the QWERTY keyboard. This will take you into VBA. In each
module place the cursor in to the left of the first Sub and type in
option private module
then press the Enter key and the job is done.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Sorry I don't understand - out of my depth - I'll give this a miss for
now.

Thanks both anyway.

Sandy

"Bob Phillips" wrote in message
...
I prefer making the module private to the project with

Option Private Module

--
---
HTH

Bob

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



"Sandy Mann" wrote in message
...
Make the Sub Private Sub ................

then the name will not appear in the dialog box.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Sandy" wrote in message
...
Hi

Is it possible to prevent a user from accessing the macros dialog
(ToolsMacroMacros) box to prevent them running a macro from there.

Sandy











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
Macros - copying macros from one computer to another TT Excel Discussion (Misc queries) 18 December 14th 06 03:24 AM
Macros Darrol Excel Discussion (Misc queries) 2 October 11th 06 07:49 PM
"openinf file..."ENABLE MACROS...DISABLE MACROS" F. Lawrence Kulchar Excel Discussion (Misc queries) 3 September 12th 06 10:33 AM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
macros Bilbo New Users to Excel 5 January 28th 05 02:51 PM


All times are GMT +1. The time now is 05:02 AM.

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"