List an object?

G

Gary Adamson

Is there a function or easy way to write a function to
list the object properties.
For instance if the object was a cell then I would like to
list all the properties and values associated with the
cell.

this is as close as i can get;

Function ListObject(objToList As Object)
Dim i As Variant
'somehow I'm trying to figure out how to
'loop through each property
For Each i In objToList
'I want to print the name and value of the property
Debug.Print i(Name) = i(Value)
Next i
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top