• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Generating Visio Drawings wi... > Setting a Visio Cell's Formula

Setting a Visio Cell's Formula

As I have illustrated previously, to set a Cell object's Formula property, you use the standard Visual Basic assignment syntax. Here is an example of setting the Formula property of a Geometry1.X6 cell presuming that a Geometry1.X6 cell exists:

Dim shpObj As Visio.Shape
Dim celObj As Visio.Cell
Set shpObj = Visio.ActivePage.Shapes.Item(1)
Set celObj = shpObj.Cells("Geometry1.X6")
celObj.Formula = "=Geometry1.X1"


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint