Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
John Driscoll
 
Posts: n/a
Default How do I stop an Excel file from being copied

I want to allow a company to use a spreadsheet I have developed but do not
want them to copy or distribute it. Can I protect the file please? Please
return answers to:
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default How do I stop an Excel file from being copied

Not possible..


--

Regards,

Peo Sjoblom


"John Driscoll" wrote in message
...
I want to allow a company to use a spreadsheet I have developed but do not
want them to copy or distribute it. Can I protect the file please?

Please
return answers to:



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How do I stop an Excel file from being copied

Not really.

Anything that you try could be stopped by a curious person.

John Driscoll wrote:

I want to allow a company to use a spreadsheet I have developed but do not
want them to copy or distribute it. Can I protect the file please? Please
return answers to:


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default How do I stop an Excel file from being copied

I have the same URGENT need. I was thinking about this for a while and
I have some questions:

1- Is it possible to REQUIRE enabled macros for a worksheet to open?
2- If it is, then perhaps opening the sheet will prompt checking for
the existence of a file somewhere on the network
3- If the file is not found, then the macro will force excel to quit

I realize that even if this is doable, it still will not be too
difficult to work around, esp as I want to prevent the DATA inside the
sheet from being copied, and it might be possible to access this data
outside the Excel environment. Still, this might be sufficient for my
purposes as the people who are using the sheet are not too technically
sophisticated.

Your input/thoughts will be greatly appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How do I stop an Excel file from being copied

#1. You could use another workbook that contains a macro that opens the real
workbook. If macros are disabled for that helper workbook, then the real
workbook won't open. If macros are enabled, then macros will be enabled for the
real workbook.

#2. dim teststr as string
teststr = ""
on error resume next
teststr = dir("\\server\share\folder\filename.txt")
on error goto 0

if teststr = "" then
thisworkbook.close savechanges:=false
end if

'continue with code

#3. See #2.

But all this depends on the curiousity/honesty of the users. It isn't too
difficult to bypass the project's protection. Then the code could be modified
to avoid all this stuff.

If you really have intellectual property that you want to protect, I don't think
excel and VBA are the way to go.



wrote:

I have the same URGENT need. I was thinking about this for a while and
I have some questions:

1- Is it possible to REQUIRE enabled macros for a worksheet to open?
2- If it is, then perhaps opening the sheet will prompt checking for
the existence of a file somewhere on the network
3- If the file is not found, then the macro will force excel to quit

I realize that even if this is doable, it still will not be too
difficult to work around, esp as I want to prevent the DATA inside the
sheet from being copied, and it might be possible to access this data
outside the Excel environment. Still, this might be sufficient for my
purposes as the people who are using the sheet are not too technically
sophisticated.

Your input/thoughts will be greatly appreciated.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
Harlan Grove
 
Posts: n/a
Default How do I stop an Excel file from being copied

Dave Peterson wrote...
#1. You could use another workbook that contains a macro that opens the real
workbook. If macros are disabled for that helper workbook, then the real
workbook won't open. If macros are enabled, then macros will be enabled for the
real workbook.


Another alternative is using a do-nothing udf in most formulas. For
example,

Function nada() : End Function

This will always return a VBA variant Empty value which Excel treats
the same as the value of blank cells, so add it to formulas that should
return numbers and concatenate it at the end of formulas that should
return text. If the user opens the workbook with macros disabled, all
formulas containing this udf will evaluate as errors. Add a message
formula like

=IF(ISERROR(nada()),"Nice try. You have to enable macros for this
workbook to calculate correctly. Close it an reopen it with macros
enabled.","")

But all this depends on the curiousity/honesty of the users. It isn't too
difficult to bypass the project's protection. Then the code could be modified
to avoid all this stuff.

....

Which is why the udf approach can be safer. While it may be easy to use
Edit Replace to replace +nada() and &nada() with nothing, it gets
harder to deal with all the variations in which nada() could be used.
Add nada() calls to several defined names too. Still possible to
disable, but it can be made to take a LOT of effort to remove it from
all formulas and name definitions.

  #7   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default How do I stop an Excel file from being copied

Thanks guys... these are just great ideas!. I think I will end up doing
a combination of these approaches: helper workbook that opens the real
workbook + checking for a file on network + a do-nothing function(
BRILLIANT idea, btw)

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
Pasword protected Excel file encrypted, how do I read this file? jonesteam Excel Discussion (Misc queries) 2 December 12th 05 06:32 PM
Weird File Open/Save As Behavior [email protected] Excel Discussion (Misc queries) 0 December 9th 05 02:26 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Very slow in opening Excel 97 file in Excel 2003 S M Setting up and Configuration of Excel 0 October 22nd 05 07:32 PM
How Do I open an excel file without Excel Viewer support CocoriteBallGiants Excel Discussion (Misc queries) 2 February 4th 05 10:50 PM


All times are GMT +1. The time now is 04:07 PM.

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"