Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting chart objects
I would appreciate any suggestions. I have a question concerning
protected charts. I am currently creating charts on a worksheet, a different chart depending upon the option button the user selects. I was told to make sure that the user can not select the chart, move the chart, delete the chart. I am creating my charts in a particular range. So when the user selects an option button for a different chart ... the previous chart object is deleted, and a new one is created and placed in the range. How can I protect each chart, considering the creation and removal of charts going on in my workbook? Thanks in advance, Julia |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting chart objects
In your code,
unprotect the sheet, delete the old chart build the new chart protect the sheet (at least for objects) Charts are on the object layer, so you have to at least protect objects. -- Regards, Tom Ogilvy wrote in message ups.com... I would appreciate any suggestions. I have a question concerning protected charts. I am currently creating charts on a worksheet, a different chart depending upon the option button the user selects. I was told to make sure that the user can not select the chart, move the chart, delete the chart. I am creating my charts in a particular range. So when the user selects an option button for a different chart ... the previous chart object is deleted, and a new one is created and placed in the range. How can I protect each chart, considering the creation and removal of charts going on in my workbook? Thanks in advance, Julia |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting chart objects
Thanks for the response. Would the following suffice?
ActiveSheet.Protect DrawingObjects:= True ' To protect chart object And I am assuming I would change the above to false to unprotect? If I am incorrect would you mind to point me in the right direction? Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting chart objects
Julia, you will need to Protect Objects after you create a chart and then
Unprotect Objects before you delete it. Mike F wrote in message ups.com... I would appreciate any suggestions. I have a question concerning protected charts. I am currently creating charts on a worksheet, a different chart depending upon the option button the user selects. I was told to make sure that the user can not select the chart, move the chart, delete the chart. I am creating my charts in a particular range. So when the user selects an option button for a different chart ... the previous chart object is deleted, and a new one is created and placed in the range. How can I protect each chart, considering the creation and removal of charts going on in my workbook? Thanks in advance, Julia |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting chart objects
Would you mind to share a code sample with me? Any help is
appreciated. Thanks |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting chart objects
That would be it.
-- Regards, Tom Ogilvy wrote in message oups.com... Thanks for the response. Would the following suffice? ActiveSheet.Protect DrawingObjects:= True ' To protect chart object And I am assuming I would change the above to false to unprotect? If I am incorrect would you mind to point me in the right direction? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
disconnected chart objects | Charts and Charting in Excel | |||
How to Name Chart Objects | Excel Discussion (Misc queries) | |||
help with chart objects | Excel Programming | |||
Chart objects | Excel Programming | |||
Moving Chart Objects | Excel Programming |