Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2014, 12:35 PM
Duvdev Duvdev is offline Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Windows 7 64bit Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Office 2010 64bit
Novice
Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer?
 
Join Date: Mar 2014
Posts: 4
Duvdev is on a distinguished road
Default Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer?

Does anyone happen to know if there is any way to share password protected VBA content from one to another? I have several macros that I am trying to share with others in our company but wanted to protect my work (to ensure others do not mess around with the code).



I can right click on the individual Modules, select the “Project Properties”, Lock the project for viewing and assign a password. After assigning the password I have closed out of the VB editor and confirmed that I have to enter in a password to view the content. However at that point I can no longer export the data. I see someone else has asked about this before but it appears that it was a concern only on the current computer in-use: https://www.msofficeforums.com/word-vba/16357-secure-macro.html

If I enter the password in, then export the Module(s) I can once again export the data to a .bas file. After transferring the .bas to a different computer, opening the VB editor and importing the file the password protection is gone. All code can be seen, edited, etc.

Also have attempted creating different document types then import as an Add-in to Word on the other machine. So far I have not been able to find a document type or way to transfer everything but still keep it protected. I wonder if this simply isn't a possibility due to security reasons.

Hopefully I have just overlooked some simple feature. Any help would be thoroughly appreciated!

Last edited by Duvdev; 04-08-2014 at 12:36 PM. Reason: Make it easier to read
Reply With Quote
  #2  
Old 04-08-2014, 03:14 PM
macropod's Avatar
macropod macropod is offline Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Windows 7 32bit Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Duvdev,

When distributing protected code, the idea is to distribute it in a carrier document or template. That way the protection remains intact. This is a quite common approach taken by 3rd-party addin developers.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-09-2014, 10:56 PM
Charles Kenyon Charles Kenyon is offline Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Windows 7 64bit Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

If you distribute it as a template (global or document) with the code protected, it will remain protected. Obviously, a .bas file is a text file and protection will not apply to that.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Can't send a macro file to another computer norwood Word VBA 3 02-04-2014 08:15 PM
Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? 300 dpi PPT images to be transferred to MS-Word... bharosey PowerPoint 1 01-23-2014 05:10 AM
Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? VBA Code for adding Macro to QAT OTPM Project 4 08-22-2013 01:33 PM
Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Indentation of word document not transferred to Kindle format Microsoftenquirer1000 Word 1 10-09-2012 05:26 AM
Possible to Protect / Hide VBA Macro Code When Transferred to a Different Computer? Assign macro but hide the button/field trlear Word VBA 5 02-23-2012 04:35 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft