Solved

Control Array

Posted on 2000-03-03
5
168 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
ID: 2581464
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
ID: 2581472
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
ID: 2588646
thanks....will try
0
 

Author Comment

by:vbdvlper
ID: 2588649
thanks....will try
0
 
LVL 4

Expert Comment

by:wesleystewart
ID: 2588754
Happy to help.  Good luck.

Wes
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 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