Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2006, 06:20 PM
Registered User
 
Join Date: Sep 2003
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?

Thanks!

[email protected]

Larry Landis
Technical Writer
 
Old March 31st, 2006, 02:29 PM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

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"
 and
Enter your desire password

Regards,

CS.






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.