MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 27th, 2002, 08:31 AM   #1
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Hi.

I need to know what possibilities are there for protecting and restricting other users using, viewing or copying my macros & accompanying workbooks.

There is a delicate situation at work, in that, some people are using and tweaking my macros and calling it their own, then making claims for payrises based on 'their' work. This is upsetting. From now on, I want to totally protect every macro I write by not making it viewable or usable by others without a password. Then I can claim it as my work.

Of course one way would be to put my macros on a floppy disk and bring it with me everyday....

Also, what tends to happen is that some people ask me to write them a macro to be used as part of their project. Lately the bastards have been claiming they did the whole project, even though without my macro it would not be a project. So if I send someone a macro, is there anyway to document explicitly who created it?

Any suggestions? This is a sad situation to have to be in really...

RET79

[ This Message was edited by: RET79 on 2002-04-27 07:33 ]
RET79 is offline   Reply With Quote
Old Apr 27th, 2002, 08:54 AM   #2
Ricky Morris
Board Regular
 
Join Date: Mar 2002
Posts: 363
Default

Quote:
On 2002-04-27 07:31, RET79 wrote:
Hi.

I need to know what possibilities are there for protecting and restricting other users using, viewing or copying my macros & accompanying workbooks.

There is a delicate situation at work, in that, some people are using and tweaking my macros and calling it their own, then making claims for payrises based on 'their' work. This is upsetting. From now on, I want to totally protect every macro I write by not making it viewable or usable by others without a password. Then I can claim it as my work.

Of course one way would be to put my macros on a floppy disk and bring it with me everyday....

Also, what tends to happen is that some people ask me to write them a macro to be used as part of their project. Lately the bastards have been claiming they did the whole project, even though without my macro it would not be a project. So if I send someone a macro, is there anyway to document explicitly who created it?

Any suggestions? This is a sad situation to have to be in really...

RET79

[ This Message was edited by: RET79 on 2002-04-27 07:33 ]
To protect your macros from being modified you can do so by choosing Tools > VBA Project on the menu bar. Click the Protection tab, check Lock project for viewing and enter a password.

To protect your macros from being used by others you can use a form that ask for a password at the beginning of your code.
__________________
It's never too late to learn something new.

Ricky
Ricky Morris is offline   Reply With Quote
Old Apr 27th, 2002, 10:57 AM   #3
Robb__
New Member
 
Join Date: Apr 2002
Posts: 41
Default

Ret79

I agree that, as a first step, you can apply a password to a project to protect the code. There is, however, no really foolproof way to protect your code in Excel if others really want to view it. There are many "cracker" programmes freely available. These may be used to open you project, even though it is password protected.

It would seem there may be a couple of issues to consider. Firstly, do you write the code or do you record macros using the Macro Recorder? If it is the latter, I'm not too sure you could claim it as your own. If, however, you write the code it could be a different matter.

If you write the code yourself, perhaps the first step would be to indicate your copyright at the top of each module or procedure. Then, take a print of all code you write.

If you believe others are using your code, you will have some proof that you were the originator and could take it to the powers that be in your organisation. You would probably only ever have to do this once as word would quickly spread that you are willing to protect your work.

Just a couple of issues to consider. Hope it helps.

Regards

Robb__
Robb__ is offline   Reply With Quote
Old Apr 27th, 2002, 11:23 AM   #4
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

Just another thought, always try to be ahead of the others, in technology (Use XP), in security "features", as a programmer you should try to be ahead of the rest, particulary in this subject.
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Apr 27th, 2002, 03:59 PM   #5
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

juan

OK what if as many guys are are not Xp.. i dot like Xp as its childish, in that is to highlight..

what then?

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is offline   Reply With Quote
Old Apr 27th, 2002, 04:05 PM   #6
sen_edp
Board Regular
 
sen_edp's Avatar
 
Join Date: Mar 2002
Location: Hellas
Posts: 553
Default

Hello

Microsoft has never promoted excel as a product with strong security.
Unfortunately , if you want to be sure that noone ever see your vba code or formulas
excel is not the best choice.

sen_edp is offline   Reply With Quote
Old Apr 27th, 2002, 04:39 PM   #7
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Hi everyone, thanks for your postings.

I don't think that the people who I fear will use and claim my code as their own have the skills necessary to penetrate into protected code. I think that simply protecting as suggested is the best idea for my and is enough for my needs.

I also like the idea of printing out my codes, to document them as my own.

Also, I will bring in a floppy disc and keep my own excel tools I have developed (things like a handy way of opening text files, extracting data etc.) and keep them on my disc not on my work's hard disk.

Thanks guys,

RET79
RET79 is offline   Reply With Quote
Old Apr 27th, 2002, 05:33 PM   #8
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

It's pretty common practice to stick in comments like this at the start of modules, or even at the subroutine level. I used one of Stephen Bullen's codes in an application and still have his header on it, I use a shorter version personally. I feel this is a good example though. This way, even if people still use your macros, you still have some kind of evidence that you created it. Even if/when they delete the header.


'***************************************************************************
'*
'* MODULE NAME: Paste Picture
'* AUTHOR & DATE: STEPHEN BULLEN, Business Modelling Solutions Ltd.
'* 15 November 1998
'*
'* CONTACT: Stephen@BMSLtd.co.uk
'* WEB SITE: http://www.BMSLtd.co.uk
'*
'* DESCRIPTION: Creates a standard Picture object from whatever is on the clipboard.
'* This object can then be assigned to (for example) and Image control
'* on a userform. The PastePicture function takes an optional argument of
'* the picture type - xlBitmap or xlPicture.
'*
'* The code requires a reference to the "OLE Automation" type library
'*
'* The code in this module has been derived from a number of sources
'* discovered on MSDN.
'*
'* To use it, just copy this module into your project, then you can use:
'* Set Image1.Picture = PastePicture(xlPicture)
'* to paste a picture of whatever is on the clipboard into a standard image control.
'*
'* PROCEDURES:
'* PastePicture The entry point for the routine
'* CreatePicture Private function to convert a bitmap or metafile handle to an OLE reference
'* fnOLEError Get the error text for an OLE error code
'***************************************************************************
Mark O'Brien is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes