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 Mar 24th, 2002, 03:51 PM   #1
Billm
Board Regular
 
Join Date: Mar 2002
Posts: 83
Default

I'm a novice to VB but I hope you can help me. I have written an Excel spreadsheet which I want to distribute to people .. but I want to restrict it from being copied or sent to 3rd parties. Is there a way of coding something in VB that can stop this ?

I was thinking along the lines maybe of extracting some info from the registered users windows registry and incorporating this into their copy of the spreadsheet .. or password .. thus if that copy is run on another computer .. then it wouldnt load the spreadsheet.

Any ideas .. or are there plug-ins that can do this sort of stuff.

Thanks
Bill
Billm is offline   Reply With Quote
Old Mar 24th, 2002, 05:32 PM   #2
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,511
Default

Bill, always try search first, please. Thanks!

http://www.mrexcel.com/board/viewtop...ic=358&forum=2
__________________
~Anne Troy
Anne Troy is online now   Reply With Quote
Old Mar 24th, 2002, 05:52 PM   #3
Billm
Board Regular
 
Join Date: Mar 2002
Posts: 83
Default

thanks .. it looks like I can password protect the VBA code from that link .. but what I was really looking for .. is a way to stop the spreadsheet from running if it has been illegally copied and is being attempted to run on another computer.
Billm is offline   Reply With Quote
Old Mar 24th, 2002, 06:09 PM   #4
dantb
Board Regular
 
Join Date: Mar 2002
Location: Arkansas
Posts: 358
Default

I asked that question before myself. I was told that you could take some of the imformation that opperates your worksheet out and put it into a ( .dll ) file. But since I know nothing about programing dll's, Im back at square 1. Maby you could find a programer that could do this for you.
dantb is offline   Reply With Quote
Old Mar 24th, 2002, 11:22 PM   #5
greg0226
New Member
 
Join Date: Feb 2002
Location: Benicia, CA
Posts: 31
Default

After I set the password and come back into VBA, I can still see the VB code and can still edit it. Is there something else i need to do to protect it? any help would be great. Thanks.

Greg
greg0226 is offline   Reply With Quote
Old Mar 24th, 2002, 11:26 PM   #6
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

You need to Save, close then re-open the Workbook for VBE protection to take effect.
Dave Hawley is offline   Reply With Quote
Old Mar 24th, 2002, 11:29 PM   #7
greg0226
New Member
 
Join Date: Feb 2002
Location: Benicia, CA
Posts: 31
Default

thanks
greg0226 is offline   Reply With Quote
Old Mar 25th, 2002, 01:55 AM   #8
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Hi
Use a dll.
xlVeryHidden all of your sheets.
Lock your project.
Call the dll to make your sheets visible.
This will stop most people.
They can copy your workbook but cannot see it.
Can cutomize dll for each registered license.
Will need VB, C++, ect to compile dll.
Tom

[ This Message was edited by: TsTom on 2002-03-25 00:57 ]
Tom Schreiner is offline   Reply With Quote
Old Mar 25th, 2002, 04:29 PM   #9
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

Hi

These posts are fine guys but help very little i have posted this question mant times and have done so for myself and others, but not one person has a usable answer, writting dll files in c++ or VB and needing that to even edit them is a bit far from usable to all bar a very few of us... the original poster dont care about protection, so dreamboats link hardly helps or answers the question. dave asvises hopw to opperate protection to kake effect and then we hear of writting dll files.

Come n guys does anyone really know and does anyone have an example..

I hjava question Dll are not all complied so why can we text edit them and save as dll??? will this not work as a reference, so the code need to be hidden agreed and call the file Jack.dll and that will check sub UK() equils Jack.dll in compleat form, not edits else fails... i beleive this is the idea, so the guy can have files that will not run on another PC....


Well thats my take and what i get asked many times, like Java appel;et protection to programmers credits if your java script boys you understand..

__________________
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 Mar 25th, 2002, 05:51 PM   #10
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Small dll file for Jack to edit for me:

MZd  @  !L!This program requires Microsoft Windows.
$ NE<       @ P h c      P * L q
L   4  0  RSRC16 WEP MYGETFREESYSTEMRESOURCES16
DLLENTRYPOINT THK_THUNKDATA16   KERNELUSER? ?t ?^ ?X Resource Meter thunks ^ XZhu h h h RP thk_ThunkData32 U~
tj 
  Uv  _ Uh@ h4 vfv = @  
      L   k  :   LS01   rsrc32.DLL rsrc16.DLL     4 VS_VERSION_INFO  
 
  ?    r StringFileInfo ^ 040904E4 &  CompanyName Microsoft Corporation 1  FileDescription Resource Meter 16-bit thunks 
FileVersion 4.10.1998   InternalName RSRC16 < ( LegalCopyright Copyright (C) Microsoft Corp. 1994-1998 # OriginalFilename RSRC16.DLL 9 ) ProductName Microsoft(R) Windows(R) Operating System 
ProductVersion 4.10.1998 $ VarFileInfo   Translation 


Oops!

Hee Hee
Tom Schreiner 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 03:11 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