Similar to custom views but not custom views.
I have some code, that to work properly, requires columns to be unhidden:
I have the following code so far for unhiding/rehiding:It unhides all hidden columns/opens all grouped columns in the spreadsheet, my other code runs, then it closes all grouped columns in the spreadsheet.Please Login or Register to view this content.
There are a couple of problems with this though:
1. If the user actually hides columns rather than using the outline/grouping feature in excel then at the end of the macro their originally hidden columns will be left unhidden.
2. If they have multiple levels of grouping it closes all grouping to level 1. The user may want some groups open most of the time while others closed all of the time. While I can close to different levels there is no way for me to know what levels or groups the user wants open/closed so by default the best thing to do is to close them to level 1. I am trying to avoid having the user have to go and put his grouping back the way they like it after running the macros.
What I really want to do is the following:
So it would act similar similar to what custom views does except without the other settings. Custom views doesn't work for me as:Please Login or Register to view this content.
1. I do not want to save and restore filter settings which custom views forces me to do
2. Custom views messes up the frozen panes.
So unless custom views can be applied to columns only or without the filter settings it is not a working solution
To better understand review the attached workbook and step through the code: You'll notice that at the end the columns are not shown how they were originally when the workbook was opened
See this thread for background/the other code driving this requirement: http://www.excelforum.com/excel-prog...all-cells.html
Bookmarks