Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to protect a workbook?


Hello

I would like to know what would be the best way to protect a
workbook(not the routine protect workbook), so that the workbook
becomes ineffective or uneditable if copied into any other
computer(even through LAN) or harddisk.

Only the author of the workbook should have the rights to copy the
workbook into another hardidsk or computer.

Can anyone suggest a way to do this?
Thanks
Rajesh

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default How to protect a workbook?

Any way you do this you will ultimately have to rely on the protection within
the workbook and as we are probably agreed there is little protection
available there.

However, one way is to have the workbook check for the existance of a file
which is only present on the authors drive, if the file isn't there then the
workbook simply closes. Code such as:-

Private Sub Workbook_Open()
If Dir("c:\trial.txt") < "" Then
MsgBox ("OK to run")
Else
ActiveWorkbook.Close savechanges:=False 'close application
End If
End Sub

However, as stated the main drawback is that anyone even moderately
determined would be able to break into your code and check what you were
doing and defeat it. If it was easy there wouldn't be so much pirate software
about.

Mike

" wrote:


Hello

I would like to know what would be the best way to protect a
workbook(not the routine protect workbook), so that the workbook
becomes ineffective or uneditable if copied into any other
computer(even through LAN) or harddisk.

Only the author of the workbook should have the rights to copy the
workbook into another hardidsk or computer.

Can anyone suggest a way to do this?
Thanks
Rajesh


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to protect a workbook?

On Mar 19, 6:05 pm, Mike wrote:
Any way you do this you will ultimately have to rely on the protection within
the workbook and as we are probably agreed there is little protection
available there.

However, one way is to have the workbook check for the existance of a file
which is only present on the authors drive, if the file isn't there then the
workbook simply closes. Code such as:-

Private Sub Workbook_Open()
If Dir("c:\trial.txt") < "" Then
MsgBox ("OK to run")
Else
ActiveWorkbook.Close savechanges:=False 'close application
End If
End Sub

However, as stated the main drawback is that anyone even moderately
determined would be able to break into your code and check what you were
doing and defeat it. If it was easy there wouldn't be so much pirate software
about.

Mike



" wrote:

Hello


I would like to know what would be the best way to protect a
workbook(not the routine protect workbook), so that the workbook
becomes ineffective or uneditable if copied into any other
computer(even through LAN) or harddisk.


Only the author of the workbook should have the rights to copy the
workbook into another hardidsk or computer.


Can anyone suggest a way to do this?
Thanks
Rajesh- Hide quoted text -


- Show quoted text -



Hello Mike

Thanks for the input.
Yeah i know that it is not easy
This is required so that the data is protected properly and no one
unauthorised meddles with the data without having the rights to do
it.
I am still looking for something more protective
Neways thanks a ton for your suggestion.

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
Can protect worksheet then workbook but not Protect and Share in code [email protected] Excel Programming 7 January 16th 17 07:01 AM
Protect Workbook Vs Protect Sheet Poor_pakistani New Users to Excel 4 May 25th 06 02:06 PM
Protect workbook Robert[_30_] Excel Programming 1 May 3rd 06 08:39 AM
Disable Tools, Protect, Protect Workbook Paul Moles Excel Programming 1 September 5th 05 03:37 PM
Running a macro to protect a workbook on a already protected workbook UNprotects the workbook ?? WimR Excel Programming 9 July 25th 05 12:44 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"