Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct type to "For Each" through a collection

Status
Not open for further replies.

catalina36

Programmer
Aug 28, 2000
36
0
0
US
When I “For Each” through a collection I usually use a Variant type control variable. However, in the case of the Forms collection or Controls collection, what type of control variable should I use? I have successfully used type Form and Control respectively in these “For Each” loops but am wondering if this is really correct since the items in a collection are themselves variants.

TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top