Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim DataArray() As Double
ReDim DataArray(1 to iFinalCount) Alan Beban Jeff Harbin wrote: I've got an range of cells of varying size made up of predominately doubles with a few strings sprinkled amongst the doubles. I need to sort through the array, determine the number of doubles in the array, and then populate an array with the doubles. I thought I could loop through the cells count the number of doubles, store the number of doubles as a variable (iFinalCount), and then Dim an Array using the iFinalCount variable like so... Dim DataArray(1 to iFinalCount) as Double When I try to run the code I get the following error: Compile Error Constant Expression required If I hit Debug it takes me to the iFinalCount in the Array dimensioning statement. Btw...iFinalCount is defined as an integer Thanks, Jeff |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Alan,
Can't e-mail you. I might have a few interesting array functions for you. Just let me know and I will mail them to you. RBS "Alan Beban" wrote in message ... Dim DataArray() As Double ReDim DataArray(1 to iFinalCount) Alan Beban Jeff Harbin wrote: I've got an range of cells of varying size made up of predominately doubles with a few strings sprinkled amongst the doubles. I need to sort through the array, determine the number of doubles in the array, and then populate an array with the doubles. I thought I could loop through the cells count the number of doubles, store the number of doubles as a variable (iFinalCount), and then Dim an Array using the iFinalCount variable like so... Dim DataArray(1 to iFinalCount) as Double When I try to run the code I get the following error: Compile Error Constant Expression required If I hit Debug it takes me to the iFinalCount in the Array dimensioning statement. Btw...iFinalCount is defined as an integer Thanks, Jeff |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
RB Smissaert wrote:
Alan, Can't e-mail you. I might have a few interesting array functions for you. Just let me know and I will mail them to you. RBS Bart, I've emailed you my email address. Is that what you meant? Alan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Alan,
That is what I meant, but got it now. Bart "Alan Beban" wrote in message ... RB Smissaert wrote: Alan, Can't e-mail you. I might have a few interesting array functions for you. Just let me know and I will mail them to you. RBS Bart, I've emailed you my email address. Is that what you meant? Alan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Easy question | Excel Discussion (Misc queries) | |||
Easy Question - Please help | Excel Discussion (Misc queries) | |||
Easy Question | Excel Discussion (Misc queries) | |||
new user with easy question? not easy for me | New Users to Excel | |||
Easy Array Question... | Excel Programming |