Solved

Control Array

Posted on 2000-03-03
5
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access query that references subform 5 49
How to make an ADE file by code? 11 109
Problem to With line 4 86
which modules are active in VB6 project? 6 56
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

737 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