Hi, I import a worksheet into a workbook on a regular basis. The worksheet has some predefined Row and Column Groupings. Using code I want to manage which rows are displayed and which are not.
Some the rows I want to hide and those I do want to display are at different levels so a blanket rule like ".Outline.ShowLevels Rowlevels:=2" just won't work. Other methods of hide/display such as "ExcecuteExcel4Macro "Show.Detail(1,5,FALSE,4)" might be the way to go but my problem is the Worksheet I import is constantly changeing so the code has to be dynamic to recognise the level to display depending on the contents of the Row. Is there some way I can use "Outline.ShowLevels.Rowlevels:=x" so that I display up to level 2 for all rows between 1 and 20 and then display level 3 for all rows from row 21 to 60 for example. Any sugestions welcome Thanks Paul -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe