Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Protect chartobjects, allow copy paste but NOT CUT (or delete)

Hi,

I thought I had it all set up now, but during testing I cut a chart and it
disapperard! I found that I CAN CUT out the chart! Not to delete, but cut...

Protection now is:
a/ In code I set:
Chart.ProtectData = True

b/ I protect the sheet with:
Sheet1.Protect DrawingObjects:=False, Contents:=True, Scenarios:=True
Sheet1..EnableSelection = xlUnlockedCells

Not so big purpose to protect the sourcecode of the charts and not allow to
delete them if the users can cut them, right? Can you please suggest a good
way of protect the charts of the sheet? You had to be able to copy paste
(to ppt or word etc) but not ruin the sourcecode in the charts or delete or
cut them out. (You know since I have code running on worksheet_change the
clipboard get empty and the chart is bye-bye...)

Background: I have a sheet with several charts. I protect them by in code
running a loop like:

For Each chtobj In Sheet1.ChartObjects
chtobj.Chart.ProtectData = True
Next chtobj

I also run other code, showing a splashscreen during the code to run then
opening the sheet and on change etc etc.

I started to write code to have the original charts on a veryhidden sheet
and just paste pictures in this worksheet, but it felt so large and I don't
know how to locate the 16 charts in the right spots in the sheet...
Hopefully you have some smart suggestion for me and I don't need to continue
with that route...

Kind regards
Gunnar


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
Protect Validation from Copy Paste function chris Excel Worksheet Functions 0 April 6th 09 09:24 PM
check box, copy / paste or insert / delete row Carla Excel Worksheet Functions 2 June 4th 08 03:01 PM
Protect Data validation cells from copy paste Guneet Ahuja Excel Discussion (Misc queries) 3 May 21st 08 04:07 PM
HOw can I copy a protect cell to paste somewhere other than excel? JeneeLynn Excel Discussion (Misc queries) 1 April 18th 08 05:40 PM
Protect from copy/paste jamex Excel Discussion (Misc queries) 0 March 18th 06 08:21 AM


All times are GMT +1. The time now is 09:22 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"