#1   Report Post  
Posted to microsoft.public.excel.misc
mattguerilla
 
Posts: n/a
Default preventing copying

Hi,

How do I prevent someone copying data from cells in excel? I am using excel
2000.

regards,

Matt
  #2   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default preventing copying

Hi

Only leaving all cells empty :-))


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"mattguerilla" wrote in message
...
Hi,

How do I prevent someone copying data from cells in excel? I am using
excel
2000.

regards,

Matt



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default preventing copying

Paste the following in ThisWorkbook code:

HTH
--
AP

'-----------------------
Private Sub Workbook_Open()
setCutCopy False
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
setCutCopy True
End Sub


Sub setCutCopy(bSet As Boolean)
Const iIdCopy = 19
Const iIdCut = 21
CommandBars("Standard").FindControl(ID:=iIdCopy).V isible = bSet
CommandBars("Edit").FindControl(ID:=iIdCopy).Visib le = bSet
CommandBars("Cell").FindControl(ID:=iIdCopy).Visib le = bSet

CommandBars("Standard").FindControl(ID:=iIdCut).Vi sible = bSet
CommandBars("Edit").FindControl(ID:=iIdCut).Visibl e = bSet
CommandBars("Cell").FindControl(ID:=iIdCut).Visibl e = bSet

If bSet Then
Application.OnKey "^c"
Application.OnKey "^x"
Else
Application.OnKey "^c", ""
Application.OnKey "^x", ""
End If
End Sub
'----------------------------
"mattguerilla" a écrit dans le
message de news: ...
Hi,

How do I prevent someone copying data from cells in excel? I am using
excel
2000.

regards,

Matt



  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default preventing copying

Just to add to Arvi's response.

Excel's security isn't made for this kind of protection.

You could try implementing the code that Ardus supplied, but if the user
disables macros or even resets his toolbar, then your data can be copied.



mattguerilla wrote:

Hi,

How do I prevent someone copying data from cells in excel? I am using excel
2000.

regards,

Matt


--

Dave Peterson
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
how do I stop "copy" taking a picture instead of copying text Martin Gray Excel Discussion (Misc queries) 1 April 6th 06 02:05 PM
Copying sheets with pictures Seb Excel Worksheet Functions 3 March 9th 06 03:10 PM
zero value when copying cells between worksheets joe Excel Discussion (Misc queries) 1 August 9th 05 08:51 PM
Problems copying street addresses and dates C. Dales Excel Discussion (Misc queries) 4 February 11th 05 01:43 PM
Excel & Copying Formulas JComer Excel Worksheet Functions 1 October 28th 04 07:17 PM


All times are GMT +1. The time now is 01:53 AM.

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

About Us

"It's about Microsoft Excel"