Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Array Problem -- again!


Hello,

Is there a method to find if array elements have been set? For
example;

ReDim Preserve ary(1 To 3, 1 To 3, 1 To Counter) - sets up array

'@ Deletes array values
i = 6
Do
For j = 1 To 3
ary(UBound(ary, 1), j, i) = ""
ary(UBound(ary, 2), j, i) = ""
ary(UBound(ary, 3), j, i) = ""
Next j
i = i + 1
Loop Until i = 7

When i enter data the counter may only = 3 but my loop for deleting the
array values starts from 6 thus i get a 'Subscript out of range' error
as ary(UBound(ary, 1), j, 6) will not exist - anyone know a method to
state if an array has been set?


--
gti_jobert
------------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...o&userid=30634
View this thread: http://www.excelforum.com/showthread...hreadid=513582

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Array Problem -- again!


No matter, have sorted it out now!


--
gti_jobert
------------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...o&userid=30634
View this thread: http://www.excelforum.com/showthread...hreadid=513582

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with array ref (I think!) Nick H[_2_] Excel Worksheet Functions 10 June 28th 09 11:03 PM
array problem Rbp9ad[_2_] Excel Programming 1 November 29th 05 05:29 PM
Array problem: Key words-Variant Array, single-element, type mismatch error davidm Excel Programming 6 November 9th 05 05:54 AM
Array problem? Rbp9ad[_2_] Excel Programming 2 November 8th 05 07:40 PM
Array problem: Key words-Variant Array, single-element, type mismatch error davidm Excel Programming 1 November 8th 05 04:21 AM


All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"