PublicSub GetDataRecords(vsoDataRecordset As Visio.DataRecordset)
Dim lngRowIDs() AsLong Dim lngRow AsLong Dim lngColumn AsLong Dim varRowData As Variant
'Get the row IDs of all the rows in the recordset lngRowIDs = vsoDataRecordset.GetDataRowIDs("")
'Iterate through all the records in the recordset. For lngRow = LBound(lngRowIDs) To UBound(lngRowIDs) varRowData = vsoDataRecordset.GetRowData(lngRow)
'Print a separator between rows Debug.Print "------------------------------"
'Print the data stored in each column of a particular data row. For lngColumn = LBound(varRowData) To UBound(varRowData) Debug.Print vsoDataRecordset.DataColumns(lngColumn + 1).Name _ & Trim(Str(lngColumn)) & " = " & VarRowData(lngColumn) Next lngColumn Next lngRow