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: 21
Default Help -- Loop or Array? How to identify?

I have a userform with checkboxes. As each checkbox is selected, a
secondary form shows, which has checkboxes and option buttons. After
gathering input from these controls, various things are done.

I wonder what is the best way to "capture" the values from the various sub
forms, checkboxes, and optionbox groups.

I have considered using an array(x=1 to 8,y=1 to 5,z=1 to 5), where x would
represent the subforms, y the checkboxes, and z the option buttons, but need
direction. I thought using a public array variable would make the values
easily "retrievable" through all modules.I thought about assigning a value
to one cell of the three-dimenstional array a value when the control was
true, but don't know how to refer to the controls by name.

I also have considered just looping through the various forms on the
controls, but is there a efficient way to loop through all the checkboxes
and option buttons for the various subforms? With hopes of easy looping, I
have prefaced the names of all the sub userforms with "ufm1Blah...ufm8Bleh",
the checkboxes with "ckb1Name...ckb5Name", and the option buttons with
"opt1One...opt5Five".

Can anyone give me a kick? I think I should be looping through all the
controls of the project (and then consider the forms that have left(asdf,4)=
ufm or ckb or opt, but I'm stuck.

TIA


 
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
Array formula to Identify Leading Zeros. Commish Excel Discussion (Misc queries) 2 December 22nd 09 04:13 PM
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
How do identify if a number is NOT in an array? Ed Excel Discussion (Misc queries) 1 April 15th 09 04:33 PM
Identify occurence in "array" which meets condition(s) Melissa Excel Discussion (Misc queries) 3 August 18th 05 12:59 PM
Can you identify the maximum value in an array? Brad Patterson Excel Programming 5 July 11th 03 12:08 AM


All times are GMT +1. The time now is 02:14 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"