Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hey all, I have a series of IF statements below that checks MatchFound and if false, removes the erroneous data from the field. A couple of questions for improving this. 1.) Can I create an array of the specified combo boxes for use in a loop? I don't want to loop through ALL combo boxes on this particular form, just the specified ones below. 2.) Can I pass the elements of the array such that they are recognized as form fields below (eg Me.[ArrayElement1])? Thanks everyone! - Brian Code: -------------------- If Me.cboTestA.MatchFound = False Then Me.cboTestA = "" End If If Me.cboTestB.MatchFound = False Then Me.cboTestB = "" End If If Me.cboTestC.MatchFound = False Then Me.cboTestC = "" End If -------------------- -- bntringa ------------------------------------------------------------------------ bntringa's Profile: http://www.excelforum.com/member.php...o&userid=30523 View this thread: http://www.excelforum.com/showthread...hreadid=505863 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array formula with and/or statements | Excel Discussion (Misc queries) | |||
Too Many IF Statements Nesting Error (Excel Formula Loop w/o VBA) | Excel Worksheet Functions | |||
Need loop structure to get round limited IF statements | Excel Discussion (Misc queries) | |||
Updating For Loop statements | Excel Programming | |||
variant array containing cel adresses convert to actual ranges-array | Excel Programming |