View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ell[_5_] ell[_5_] is offline
external usenet poster
 
Posts: 4
Default excel isObject or collection exists

how is the syntex in vba excel to check: if object exists, or is
object in collection exists.

I tried this code in vba excel :

if (oElement.Attributes("backGroundColor")) then
.... do something

but got error.

in VBA code there are some common object instance,checking
like: isObject(obj)=0
or: obj=null
or: obj is nothing
or empty
none of above works ??
only something like on error resume next ?? (not very common)
why excel VBA is different from other VBA like MS-Access ?

el