Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Changing a Chart on a Protected Sheet

I have a chart in a sheet that I wish to protect. Some of the cells, data
and control input, are obviously unprotected. As a consequence of the data
and control input the chart needs to have ranges added or deleted. With an
unprotected worksheet this works fine, but the line:

ActiveSheet.ChartObjects("Chart 6").Activate

fails when the worksheet is protected. I have looked at the properties of
the Activesheet and although there are a number of .Protection variables
I unable to find a combination that allows the changes I require.

Any help gratefully accepted.

Peter


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changing a Chart on a Protected Sheet

When you protect the sheet, don't protect objects.

also make sure the chart is actually named Chart 6

--
Regards,
Tom Ogilvy

"Peter M" wrote in message
...
I have a chart in a sheet that I wish to protect. Some of the cells, data
and control input, are obviously unprotected. As a consequence of the

data
and control input the chart needs to have ranges added or deleted. With

an
unprotected worksheet this works fine, but the line:

ActiveSheet.ChartObjects("Chart 6").Activate

fails when the worksheet is protected. I have looked at the properties of
the Activesheet and although there are a number of .Protection

variables
I unable to find a combination that allows the changes I require.

Any help gratefully accepted.

Peter




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing a Chart on a Protected Sheet


Tom,

Many thanks, chart now works as expected.

For some reason I couldn't find the reply on the bulletin board and was
only aware of your reply through Developersdex.

Again, many thanks.

Peter


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Format changing in protected cell Shaggyjh Excel Discussion (Misc queries) 0 July 31st 09 10:52 AM
Changing Font in an unlocked cell in a protected sheet. Mark T UK Excel Discussion (Misc queries) 2 October 3rd 08 12:03 PM
Changing font color of protected cells programatically Nigel Excel Discussion (Misc queries) 6 September 13th 08 12:32 PM
Sheet Information - Is sheet protected? lbit Excel Discussion (Misc queries) 1 November 15th 07 08:06 PM
changing a password protected file mellow Excel Discussion (Misc queries) 2 June 3rd 06 05:10 AM


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