Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Hide VB Scripts & macro from user

Is there a way to prevent the user from viewing VB scripts and Macros. The
reason I ask is that I have a protected sheet and I have passowrds coded into
the scripts that I want to prevent the user from seeing.

eg.
Sub auto_open()
With Worksheets("Passive Safety")
.Protect Password:="password", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Hide VB Scripts & macro from user

In the VBA window, go to VBAProject Properties and then the tab named
"Protectioon and add a password.

When you next reload the excel file you will not be able to get access to
the macros without the password, or a cracking plug in. But for basic
security it does the trick.

"Ram B" wrote:

Is there a way to prevent the user from viewing VB scripts and Macros. The
reason I ask is that I have a protected sheet and I have passowrds coded into
the scripts that I want to prevent the user from seeing.

eg.
Sub auto_open()
With Worksheets("Passive Safety")
.Protect Password:="password", userinterfaceonly:=True
.EnableOutlining = True
End With
End Sub

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
Linking multiple scripts by user OK Cyntalan Excel Programming 1 October 20th 06 04:01 AM
Hide columns to all but one user? Fern Excel Discussion (Misc queries) 7 October 6th 05 10:16 PM
how can I hide macro list from user? Bill_S Excel Programming 4 April 28th 05 09:11 AM
VBA code scripts in macro Eric[_6_] Excel Programming 1 September 11th 03 05:37 PM
Hide code from user losmac Excel Programming 0 August 19th 03 08:12 PM


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