Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 29th, 2006, 06:20 PM
Registered User
Join Date: Sep 2003
Location: Tulsa, Oklahoma, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Distributing Macros

I want to distribute a template with its macros, but don't want users to be able to see the macros in the documents which are based on the template (so they won't be able to modify or copy my work). Is this possible, and if so, how?



Larry Landis
Technical Writer
Reply With Quote
  #2 (permalink)  
Old March 31st, 2006, 02:29 PM
Registered User
Join Date: Feb 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


You can protect your vba code by setting the password.

Open your template (.dot file) in word.

To set the password, open the vba editor by pressing Alt + F11;
Goto Tools -> [project Name] properties
here the project name will be the your project name.

it will open a project properties window there will be two tabs General and protection.

Goto protection tab,

Check the option "Lock project for viewing"
Enter your desire password



Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Distributing a struts app: does it require the JDK ojasrege Struts 1 October 24th, 2007 01:25 AM
Distributing Access Files ChavisD Access 5 February 6th, 2004 03:29 PM
distributing runtime for DB access module0000 VB Databases Basics 3 June 27th, 2003 03:10 AM
distributing JET/OLE module0000 Beginning VB 6 2 June 26th, 2003 04:14 PM

All times are GMT -4. The time now is 04:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.