Advertisement

05.15.2008 at 07:15AM PDT, ID: 23405166
[x]
Attachment Details

Excel VBA - Overflow message assigning a string to an array

Asked by CraigLowdon in VB Script, Visual Basic Programming, Microsoft Excel Spreadsheet Software

Tags: Microsoft, Excel, 2003, VBA

Hi,

I have a program where i have open ended arrays, this has worked fine in the past but I have a feeling i must have done something different, the reason they are open ended as the amount of information in the array will change each time and on the last array value using a loop i plan to put a "stopper" value.

The agentName_array is fine and on debug they both display a text string but the Info_operatorName(LineNumber) is substring out of range.

any help is greatly appreciated!




Start Free Trial
1:
2:
3:
4:
5:
6:
7:
Dim Info_OperatorName() As String
 Dim Info_LoggedInTime() As String
 Dim Info_TalkTime() As String
 
 Line_Number = 0
 
Info_OperatorName(LineNumber) = AgentName_Array(5) & " " & AgentName_Array(6)
[+][-]05.15.2008 at 07:21AM PDT, ID: 21573914

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.15.2008 at 07:22AM PDT, ID: 21573929

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.15.2008 at 07:50AM PDT, ID: 21574254

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:55AM PDT, ID: 21574307

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:57AM PDT, ID: 21574340

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 08:10AM PDT, ID: 21574485

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 08:37AM PDT, ID: 21574822

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 09:41AM PDT, ID: 21575608

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 09:49AM PDT, ID: 21575689

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, Visual Basic Programming, Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003, VBA
Sign Up Now!
Solution Provided By: rorya
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.15.2008 at 09:51AM PDT, ID: 21575714

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628