Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBScript code behind Excel

I am doing some VB Scripting behind an Excel spreadsheet but don't want the
code to be visible when I distribute the spreadsheet. How can I hide it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBScript code behind Excel

In the VBE with your workbook with the code the active project, go to
Tools= "vbaproject name" properties

where vbaproject name would be replaced with the name of your project (which
is shown in the project explorer as part of the root name of your project
and this name should be something other than vbaproject - the default).

Anyway, this has the options for password protecting your project.
--
Regards,
Tom Ogilvy


"jjjjj" wrote in message
...
I am doing some VB Scripting behind an Excel spreadsheet but don't want

the
code to be visible when I distribute the spreadsheet. How can I hide it?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default VBScript code behind Excel

In Tools = VBA Project properties, select the Protection tab and tick the
Lock Project For Viewing, then enter a password.
Also if your project uses procedures that you do not want your users to see
thru the Macro dialog box, add Option Private Module at the top of your
modules to hide the code from users.

--

Hope that helps,

Phil

------------------------------------------

IT Analyst
SE1, London, UK,

http://uk.geocities.com/philippeoget
philippeoget at yahoo dot com

Programming Excel: <a
href="http://uk.geocities.com/philippeoget/xl/InternetLinkOrganiser.zip"
target="_blank"The Excel A2Z Project: </a
http://uk.geocities.com/philippeoget/a2z/

"jjjjj" wrote in message
...
I am doing some VB Scripting behind an Excel spreadsheet but don't want the
code to be visible when I distribute the spreadsheet. How can I hide it?



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
Run VBScript from Excel Amy M Excel Discussion (Misc queries) 4 September 19th 08 09:07 PM
Trying to Sort and Subtotal with Vbscript in Excel Jeremy Smith[_2_] Excel Programming 1 March 6th 04 04:36 PM
Opening excel spreadsheet from within a VBscript Disco[_2_] Excel Programming 7 January 23rd 04 03:50 PM
embed excel in ie using vbscript balaji kandan Excel Programming 0 November 22nd 03 09:47 AM
how to kill excel using a vbscript Harald Staff[_4_] Excel Programming 0 July 17th 03 10:02 PM


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