CellsSRC property
Collapse the table of content
Expand the table of content

CellsSRC property

CellsSRC property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

https://msdn.microsoft.com/en-us/library/aa141917(v=office.10).aspx See also         https://msdn.microsoft.com/en-us/library/aa155603(v=office.10).aspx Example         https://msdn.microsoft.com/en-us/library/aa164278(v=office.10).aspx Applies to

Returns a Cell object that represents a ShapeSheet cell identified by section, row, and column indices.

Version added



objRet = object.CellsSRC (section, row, column)


A Cell object that represents the requested cell.


Required. An expression that returns a Shape object.


Required Integer. The cell's section index.


Required Integer. The cell's row index.


Required Integer. The cell's column index.


To access any shape formula by its section, row, and column indices, use the CellsSRC property. Constants for section, row, and column indices are declared by the Visio type library as members of VisSectionIndices, VisRowIndices, and VisCellIndices, respectively.

The CellsSRC property does not raise an exception if index values for section, row, and column do not identify an actual cell. Subsequent methods invoked on the returned object fail. You can determine if a cell with particular index values exists using the CellsSRCExists property.

The CellsSRC property is typically used to iterate through the cells in a section or row. To retrieve a single cell, use the Cells property and specify a cell name. For example:

Set celObj = Cells("PinX")
© 2016 Microsoft