Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I am using a macro to load an array with data from excel. This is time series data. As I loop through all the years and months, there are some months that don't exist in a specific year (eg for 2005, the data starts from April, whereas my array loops over all months). So when I look up this array in the local variables, each element of the array shows up as EMPTY. this causes a problem cos at the end of all this, I'm trying to do : worksheetfunction.average(array) and it fails when I the array is empty. Is there anyway to determine if the array is empty, cos then I can use an if statement to circumvent. I've tried using lbound, ubound, isempty etc etc...nothing seems to be working. Suggestions are deeply appreciated. Thanks Chet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TESTING FOR EMPTY ARRAY | Excel Programming | |||
Set array element to empty | Excel Programming | |||
Empty Array | Excel Programming | |||
Array Empty After Sub Called | Excel Programming | |||
Is the array empty? | Excel Programming |