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: 1
Default 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
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
Redundant data ale Excel Discussion (Misc queries) 1 May 14th 07 06:51 PM
minimizing problem Dave Excel Discussion (Misc queries) 5 June 7th 05 06:29 PM
Minimizing/Compressing VB Code in Excel File ... Joe HM Excel Programming 3 March 29th 05 01:51 PM
Minimizing application from VBA Steve Excel Programming 2 November 6th 03 03:46 PM
Minimizing a Form Khai[_2_] Excel Programming 1 July 24th 03 08:44 PM


All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"