This is just a way of writing values to shape cells. All shapes in Visio
have a range of properties that control things like position, size, colour
etc. You can access these properties using the standard UI, through the
shape's respective ShapeSheet or via code (which a lot of the time is simply
reading and writing values to the ShapeSheet).
In your example AnObject.CellsSRC(, , ).FormulaU = "0"
AnObject is your reference to a shape (or page or document)
.CellsSRC returns a (ShapeSheet) cell object, based on the Section, Row and
Column indices that you pass in
.Formula allows you to read or write the contents of the ShapeSheet formula
to the cell object
Finally ="0" is the formula you're writing to the cell. This has meaning if
the cell you're writing to is a colour cell, such as FillForegnd, as 0 will
evaluate to Black, for example.
If you looking to achieve something specific then perhaps you could provide
a little more detail on what that is, but if you just looking to learn how
Visio works, then maybe I could point you to this blog post to get you
going:
http://visualsignals.typepad.co.uk/vislog/2007/10/just-for-starte.html
Hope that helps.
Best regards
John
John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.ukwww.visualSignals.co.uk
Thanks! But still I have problem to figure out what a code such that
AnObject.CellsSRC(, , ).FormulaU = "0" does,what does "0"or any other
number on right means
Any idea(s)- Hide quoted text -
- Show quoted text -