Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide Macros from Users


I have an application in Excel that contains several
macros for an end user. I don't want the user to be able
to modify or see the macro code. Can someone tell me how I
can hide the macros from being viewed and modified?

Thanks In Advance.

Larry Graff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Hide Macros from Users

Larry,

From the VBA Editor
Tools/VBA Project Properties
Protection tab
Check "Lock project for viewing"
Type is password

Note: There are plenty of ways to crack this password.
If you're trying to hide your code from an experienced
user (or one who might search for ways to do so within
these ng's or the Google archives), it's an exercise in
futility.

John

Larry Graff wrote:

I have an application in Excel that contains several
macros for an end user. I don't want the user to be able
to modify or see the macro code. Can someone tell me how I
can hide the macros from being viewed and modified?

Thanks In Advance.

Larry Graff


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Hide Macros from Users

You can place Private before a sub like this
Private Sub test()

Or add this at the top of the module
Option Private Module

This way you don't see it in the macro list (Alt-F8)


You can Protect your project in the VBA editor

Alt-F11
In the menubar ToolsVBA project properties
See the protection tab

This way they can't see or edit your code

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Larry Graff" wrote in message ...

I have an application in Excel that contains several
macros for an end user. I don't want the user to be able
to modify or see the macro code. Can someone tell me how I
can hide the macros from being viewed and modified?

Thanks In Advance.

Larry Graff



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
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
Protection in Excel - how do i hide some info. from some users? michael Excel Discussion (Misc queries) 13 December 21st 05 03:32 PM
is it possible to Hide certain worksheets from certain users? Admin Excel Discussion (Misc queries) 2 May 4th 05 09:15 PM
In Excel VBA Editor, how do I hide my code from other users? Mayberrk Excel Discussion (Misc queries) 1 February 8th 05 06:11 AM


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