LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Hide Macros from Users using workbook!

I like Option Private Module. It's my current favorite.

"Bob Phillips" wrote in message
...
Tim,

It is not something I do often, but I have done it. I offered three

methods,
all have drawbacks.

The first is to make it Private. This may not be possible if called from
another module.

The second is to make it a function. This is both my least and my most
favourite approach. I tend to write more functions than subs, returning a
result, so my most favourite. But it will appear in the function wizard,

so
also my least favourite.

The third, by adding a parameter, than can be a do-nothing parameter,

means
that it does not appear in the macros, does not appear in function

wizard,
and does not affect the running. Making it optional means that no code

needs
to change. So a sub like

Public Sub TestSub(Optional dummy as Boolean)
...
End Sub

and just ignore dummy .

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Tim Zych" wrote in message
...
Bob, why do you recommend adding a parameter simply to hide the macros

from
view? Is that something you would really implement?


"Bob Phillips" wrote in message
...
Either

make them Private
make them Functions (they will be visible from the function wizard)
make them public but pass a parameter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gr8guy" wrote in message
...
Hi,

Is it possible to hide macros from a user so that they are not

visible
in
Tools Macro Macros & so that user may not run them by mistake?


Rgds,

Eijaz













 
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
How can I hide certain data in a spreadsheet for certain users? ClaireB Excel Discussion (Misc queries) 1 December 17th 08 05:32 PM
hide a page and prevent outside users from viewing it. [email protected] Excel Discussion (Misc queries) 4 June 18th 07 09:30 PM
Force users to enable macros when open a workbook Tan New Users to Excel 2 April 15th 07 05:09 PM
is it possible to Hide certain worksheets from certain users? Admin Excel Discussion (Misc queries) 2 May 4th 05 09:15 PM
Hide Macros from Users Larry Graff Excel Programming 2 September 10th 03 05:41 PM


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