You can add fields by code.
Add the Edit date:
vsoCharacters1.AddFieldEx visFCatDateTime, visFCodeEditDate,
visFmtMsoDateLongDay, 1033, 0
Add the Height of the shape:
vsoCharacters1.AddFieldEx visFCatGeometry, visFCodeHeight,
visFmtNumGenNoUnits, 1033, 0
Add the number of pages:
vsoCharacters1.AddFieldEx visFCatPage, visFCodeNumberOfPages,
visFmtNumGenNoUnits, 1033, 0
The easiest way to determine what code you need is to use the Record Macro
feature and then insert the field you want into a shape.
John... Visio MVP
Need stencils or ideas?
http://www.mvps.org/visio/3rdparty.htm
Need VBA examples?
http://www.mvps.org/visio/VBA.htm
Common Visio Questions
http://www.mvps.org/visio/common_questions.htm
Visio Wishlist
http://www.mvps.org/visio/wish_list.htm