Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
minimizing redundant code
let's say i have some code as follows: Code: -------------------- If ComboReg.Value = "National" Then ListNat.Visible = True ListE.Visible = False ListW.Visible = False ListC.Visible = False ListS.Visible = False -------------------- is there any way to group the different lists so that i only need to write .visible = false once? maybe something like (liste,listw,listc,lists).visible = false. what about for with-end with constructions? is there a way i can write: Code: -------------------- with (liste,listw,listc,lists) insert code end with -------------------- or something to that effect? thanks. -- dreamz ------------------------------------------------------------------------ dreamz's Profile: http://www.excelforum.com/member.php...o&userid=26462 View this thread: http://www.excelforum.com/showthread...hreadid=521145 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Redundant data | Excel Discussion (Misc queries) | |||
minimizing problem | Excel Discussion (Misc queries) | |||
Minimizing/Compressing VB Code in Excel File ... | Excel Programming | |||
Minimizing application from VBA | Excel Programming | |||
Minimizing a Form | Excel Programming |