LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Custom View: hide/unhide does not work when worksheet is protected

In a protected worksheet I want to hide/unhide certain columns using Custom
Views. The column hiding/unhiding works fine as long as the worksheet is not
protected, but I get the following message and the columns are not properly
hidden/unhidden, when the worksheet is protected:

"Some view settings could not be applied".

I hoped that checking the checkbox "Format Columns" in the Protect dialog --
that is, allowing users to "format columns" when the sheet is protected --
would do the trick, but that does not seem to be the case. In fact, I tried
checking ALL THE CHECKBOXES and that did not allow hide/unhide columns. HELP
says:

"Format columns When cleared, prevents users from using any of the
commands on the Column submenu of the Format menu, including changing column
width or hiding columns."

The "Format Columns" DOES allow me to manually hide and unhide columns, even
when the sheet is protected, but it just doesn't happen automatically as part
of the Custom View.

Is there some other way to accomplish what I want?

I don't mind writing some code, but I'm unclear on where to put it. What
event or action would trigger just before a Custom View is carried out? Seems
I could turn off protection to let the Custom View hide/unhide the desired
columns. But then I would need to turn protection back on and I'm not sure
where/how that piece of code would get executed.

Any thoughts or suggestions will be appreciated.

TIA,

Phil

 
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
hide unhide rows -Protected sheet Wanna Learn Excel Discussion (Misc queries) 3 August 5th 09 05:43 PM
hide ,unhide columns on protected worksheet kamlesh Excel Programming 1 January 11th 07 04:17 PM
Using Hide, Unhide, and auto filter - select all on a protected sh Pattie Excel Worksheet Functions 1 July 7th 06 04:47 PM
How to view a custom view when the worksheet is protected? JulesJam Excel Worksheet Functions 0 March 6th 06 02:15 PM
how do i unhide a worksheet in excel 2003? unhide tab don't work mikekeat Excel Discussion (Misc queries) 2 March 6th 06 03:36 AM


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