LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Protecting Embedded Chart

How about:

Worksheet("MySheet").ChartObjects("MyChart").Chart .Protect
DrawingObjects:=True, Contents:=True


--
* Please click Yes if this was helpful *
Andy Smith
Senior Systems Analyst
Standard & Poor''s, NYC



"Kevin" wrote:

How do I completely lock down a chart embedded in a worksheet (not a chart
sheet) in VBA to prevent changed through the UI? I have tried:

Worksheet("MySheet").ChartObjects("MyChart").Chart .Protect
Worksheet("MySheet").ChartObjects("MyChart").Prote ctChartObject = True
Worksheet("MySheet").ChartObjects("MyChart").Enabl ed = False
Worksheet("MySheet").ChartObjects("MyChart").Locke d = True

I, of course, protected the worksheet itself also:

Sheets("MySheet").Protect Password:="SecretWord", DrawingObjects:=True,
Contents:=True, Scenarios:=True

None of these steps seem to prevent me making changes to the format of the
data series and legend. How do I lock down all of these items?

Thanks,

Kevin

 
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
Extracting chart title from Embedded Excel Chart in PowerPoint Barb Reinhardt Excel Programming 1 June 11th 08 02:22 PM
Protecting an Excel worksheet without locking the embedded scrollbar Genesis[_2_] Excel Discussion (Misc queries) 4 October 30th 07 07:20 PM
Embedded Chart Versus Chart - ShowDetail Issue [email protected] Charts and Charting in Excel 1 May 14th 06 04:11 PM
enabling chart events for an embedded chart Wazooli Excel Programming 2 January 26th 06 01:15 PM
Protecting Embedded Spreadsheets in a Word Doc PamelaD Excel Programming 0 May 2nd 04 01:19 PM


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