View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
KJTFS[_38_] KJTFS[_38_] is offline
external usenet poster
 
Posts: 1
Default see if dynamic array used

error check the ubound of the array

dim intTemp as integer
dim bolNothing as boolean

bolNothing = false
on error goto OutOfBounds
intTemp = ubound(array)
on error goto 0
if bolnothing = true then
''do what you need to do when nothing in array
endif
'''proced with code if there is stuff in array


OutOfBounds:
'''Your array has nothing
bolNothing = true
resume next

Keith
www.kjtfs.com


---
Message posted from http://www.ExcelForum.com/