View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Cell Properties or XML data

A cell is part of a Range and the Range Oject can have many Properites:

Sub CellProperties()
Dim r As Range
Set r = Range("A1")
With r
MsgBox (.Formula)
MsgBox (.Value)
MsgBox (.Value)
MsgBox (.Interior.ColorIndex)
End With
End Sub
--
Gary''s Student - gsnu200903


"AnandaSim" wrote:

I'm thinking of iterating through cell in a range and dumping/
documenting the value, formula and other attributes into a database so
that I can sort, filter, analyse cells. Tried range("a1").properties
(i) but properties does not seem to be supported in the object model?

Next, I would like to document properties which are different from
default - is there some approach to define what is default and then
use that as comparison?

I thought of looking at the .xlsx XML file but there's Excel specific
XML to decipher and to use an XML engine rather than the VBA / Excel
Object Model.

Any tips? Or any established tools that already do this?

Thanks.

Ananda