Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to compile the macro


I have a user form with some controls and their code (macro)
when I send the file another, he can see the macro and it is the
editable

what are the tools or way to compile the macro thus no one can see the
code like a exe


--
dayanand108
------------------------------------------------------------------------
dayanand108's Profile: http://www.excelforum.com/member.php...o&userid=25464
View this thread: http://www.excelforum.com/showthread...hreadid=401440

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to compile the macro

You'd have to write some COM object or .dll to compile the code so that it was
undecipherable (beyond me).

Or you could protect the project.
Inside the VBE
tools|vbaproject properties|protection tab

Be aware that this can be broken, too--but probably not by the casual user.

dayanand108 wrote:

I have a user form with some controls and their code (macro)
when I send the file another, he can see the macro and it is the
editable

what are the tools or way to compile the macro thus no one can see the
code like a exe

--
dayanand108
------------------------------------------------------------------------
dayanand108's Profile: http://www.excelforum.com/member.php...o&userid=25464
View this thread: http://www.excelforum.com/showthread...hreadid=401440


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default How to compile the macro

VBA (or even XL for that matter) is not designed to be a secure
environment. About the best you can do is password the project. In
the VBE, make sure the Project Explorer pane is visible (if not, use
View | Project Explorer). Right click on your project and select
{project name} Properties... then select the Protection tab. Password
protect the project.

Two caveats. After you save the file you will be unable to access the
project without the password. The password is good only to keep the
honest and curious away. It is rather easy to break.

Finally, I would strongly recommend you consider distributing your code
as an add-in. For more see

Microsoft Office XP Developer
Building Application-Specific Add-ins
http://msdn.microsoft.com/library/de...l=/library/en-
us/modcore/html/deovrbuildingapplicationspecificaddins.asp
and
Microsoft Office XP Developer
Add-ins, Templates, Wizards, and Libraries
http://msdn.microsoft.com/library/de...l=/library/en-
us/modcore/html/deovraddinstemplateswizardslibraries.asp



--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...

I have a user form with some controls and their code (macro)
when I send the file another, he can see the macro and it is the
editable

what are the tools or way to compile the macro thus no one can see the
code like a exe


--
dayanand108
------------------------------------------------------------------------
dayanand108's Profile:
http://www.excelforum.com/member.php...o&userid=25464
View this thread: http://www.excelforum.com/showthread...hreadid=401440


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
Password Protect Macro - Compile Error Teddy-B Excel Discussion (Misc queries) 1 January 23rd 08 02:50 AM
macro to compile columns on multiple sheets simonsmith Excel Discussion (Misc queries) 2 May 9th 06 04:06 PM
Macro / Compile Error / Duplicate Declaration carl Excel Worksheet Functions 1 June 29th 05 08:55 PM
macro compile error Jan Holmstrom Excel Programming 3 June 9th 05 01:46 PM
Excel 97 Macro Compile Errors Simon[_15_] Excel Programming 1 May 10th 04 01:37 PM


All times are GMT +1. The time now is 12:02 AM.

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"