Solved

Control Array

Posted on 2000-03-03
5
170 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

688 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