This is a quick attempt, but you could add the following to the ThisDocument
module
Option Explicit
Private Sub Document_BeforeSelectionDelete(ByVal Selection As IVSelection)
UpdateDateReviewed
End Sub
Private Sub Document_PageAdded(ByVal Page As IVPage)
UpdateDateReviewed
End Sub
Private Sub Document_ShapeAdded(ByVal Shape As IVShape)
UpdateDateReviewed
End Sub
Private Sub Document_ShapeExitedTextEdit(ByVal Shape As IVShape)
UpdateDateReviewed
End Sub
Sub UpdateDateReviewed()
Dim vsoShape As Visio.Shape
Dim intPropRow As Integer
Set vsoShape = ActivePage.PageSheet
If vsoShape.CellExists("Prop.DateRevised", False) = False Then
intPropRow = vsoShape.AddRow(visSectionProp, visRowLast, visTagDefault)
vsoShape.CellsSRC(visSectionProp, intPropRow,
visCustPropsLabel).FormulaU = """DateRevised"""
vsoShape.CellsSRC(visSectionProp, intPropRow,
visCustPropsValue).RowNameU = "DateRevised"
vsoShape.CellsSRC(visSectionProp, intPropRow, visCustPropsType).FormulaU
= "5"
vsoShape.CellsSRC(visSectionProp, intPropRow,
visCustPropsFormat).FormulaU = ""
vsoShape.CellsSRC(visSectionProp, intPropRow,
visCustPropsPrompt).FormulaU = ""
vsoShape.CellsSRC(visSectionProp, intPropRow,
visCustPropsValue).FormulaU = ""
End If
vsoShape.Cells("Prop.DateRevised") = Format(Now(), "00000.00000")
End Sub
John... Visio MVP