Solved

Control Array

Posted on 2000-03-03
5
163 Views
Last Modified: 2010-05-02
Is there a way to create a control array in VBA for office 97?  I am writing a VB/VBA program running in Excel 97, in VB there is a property 'index' for a control for a control array...there is no index property in VBA office 97....the app uses the standard control toolbox....thanks...this is probably pretty easy?
0
Comment
Question by:vbdvlper
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:wesleystewart
Comment Utility
There isn't a way to make a true control array in the flavor of VBA used in Office97.  You can create a collection of controls, and then loop through them by using the index, but you can't refer to the whole array and change properties, etc all at the same time.  Here's a short piece on the topic:

http://www.mvps.org/access/forms/frm0038.htm

Wes

0
 
LVL 4

Accepted Solution

by:
wesleystewart earned 20 total points
Comment Utility
I am by no means the final authority on the topic, so definitely leave this question open for a few days and see if you get any different responses.

Wes
0
 

Author Comment

by:vbdvlper
Comment Utility
thanks....will try
0
 

Author Comment

by:vbdvlper
Comment Utility
thanks....will try
0
 
LVL 4

Expert Comment

by:wesleystewart
Comment Utility
Happy to help.  Good luck.

Wes
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now