Hello,
Could someone suggest some VBA code to protect all objects in visible sheets?
Are charts included in the objects collection?
thanks
tasos
Hello,
Could someone suggest some VBA code to protect all objects in visible sheets?
Are charts included in the objects collection?
thanks
tasos
Yes I think charts are included as objects.
What version of excel?
Have you tried using the macro recorder whilst applying sheet protection?
Hi,
i am using excel 2007.. I wasn't able to use the macro recorder to protect objects.. I think this can only be done via VBA.
The macro recorder gave me this when protecting the sheet
This will lock all the shapes/objects on the activesheetPlease Login or Register to view this content.
To get at the dialog to format a shape manually select itPlease Login or Register to view this content.
Drawing Tools > Format > Size > dialog launch (small arrow bottom right corner of group)
thanks Andy
are graphs included within the shapes collection?
I am still a bit confused.
I need two separate procedures:
- One to protect only the charts for all sheets
- One to protect all objects for all sheets
thanks again for all your help
Yes chartobjects are part of the shapes collection.
To get just chart objects then this for each loop
Please Login or Register to view this content.
ok, this is the reason i am confused..
I have some charts with data tables and I use your procedures and they still are not protected... they can be moved around and changed.
I am using Excel 2007.
thanks
andy
my bad... its now working as expected... thanks for your help Andy :-)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks