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: 81
Default UserForm to Hide/Unhide Rows

I have a budgeting template that contains several dozen potential line
items of which only ten or so might be used on a given model. I'd like
to build a series of UserForms that would prompt the user to select the
line items that should be shown (assuming the others are hidden). Due
to the format of the sheet, I don't want to use DataFilters.

I'm not quite sure how to approach this since I don't have a lot of
UserForm experience. Therefore, any direction and sample code would be
appreciated. I was thinking something like the following.

Build a simple UserForm with a ListBox which is tied to a Range in the sheet. Let's say that range is named JobGrades_lst.


Initialize the form and preselect all items that correspond to a non-hidden row. (Not sure how to do this.) Hidden rows would not be selected but would still show on the form.


Allow user to select and deselect in the form. When the form is closed, the appropropriate rows are hidden or unhidden.


Any comments on this approach? How about examples and/or alternatives.

- John

 
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
Enabling option „Format rows“ to hide/unhide rows using VBA-code? ran58 Excel Discussion (Misc queries) 0 July 28th 09 03:46 PM
How to Hide and Unhide Rows Jonno Excel Discussion (Misc queries) 2 June 9th 09 04:34 PM
hide and unhide rows leonidas[_8_] Excel Programming 0 June 15th 06 12:28 PM
Hide Unhide Rows blackstar Excel Discussion (Misc queries) 2 February 6th 06 09:36 PM
Hide/Unhide Rows Al Excel Programming 3 January 18th 06 07:03 PM


All times are GMT +1. The time now is 12:17 PM.

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"