Teepee
I would say, from my testing yes. To be honest, I've always done that
unprotect, change, protect as these were not available pre XP. Expect it to
make a comeback though as the object model in VBA gets updated to the new
objects

Signature
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/
FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk
> Charts and shapes in Office are now a shared object, not specific to the
> Excel application, therefore the protection through VBA is broken as it is
> no longer a DrawingObject. It still appears to work through the interface
>
> Thanks Nick. Does that mean I can't use macros on my charts without
> unprotecting my sheets?
teepee - 31 Mar 2007 12:26 GMT
I would say, from my testing yes. To be honest, I've always done that
unprotect, change, protect as these were not available pre XP.
Thanks Nick. I think I can workaround. I put ActiveSheet.Unprotect at the
top of the userform that controls the VBA. I just need to find a way to put
ActiveSheet.Protect in automatically when the userform exits. If you have
any ideas....
Thanks for your advise
TP
Nick Hodge - 31 Mar 2007 13:51 GMT
Teepee
How about the UserForm_Deactivate() event?
Private Sub UserForm_Deactivate()
ActiveSheet.Protect
End Sub

Signature
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/
FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk
> I would say, from my testing yes. To be honest, I've always done that
> unprotect, change, protect as these were not available pre XP.
[quoted text clipped - 8 lines]
>
> TP
teepee - 31 Mar 2007 14:48 GMT
ta good idea
Teepee
How about the UserForm_Deactivate() event?
Private Sub UserForm_Deactivate()
ActiveSheet.Protect
End Sub

Signature
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/
FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk
> "Nick Hodge" wrote
>
[quoted text clipped - 10 lines]
>
> TP
teepee - 31 Mar 2007 15:58 GMT
"Nick Hodge" wrote
How about the UserForm_Deactivate() event?
Private Sub UserForm_Deactivate()
ActiveSheet.Protect
End Sub
And my final dumb question - why does this subcommand not work. Presumably
it goes inside the userform?
Nick Hodge - 31 Mar 2007 18:28 GMT
Correct
Thinking about it you should reference the sheet explicitly as it may ne be
active
Worksheets("Sheet1").Protect

Signature
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/
FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk
> "Nick Hodge" wrote
>
[quoted text clipped - 6 lines]
> And my final dumb question - why does this subcommand not work. Presumably
> it goes inside the userform?
teepee - 31 Mar 2007 18:45 GMT
Thanks for all your help Nick.
I've got it more or less up and running in 2007 now, albiet with some of the
functionality missing - but good enough until Microsoft gets round to
sorting out the compatability issues - if they ever do.