In Visio 2003, a new variety of comments were added that are tied to the
page and not to any specific shape.
The article refers to these newer comments.
The following code will display the shapes name and comment (also called
ScreenTips) to the debug window.
Public Sub DisplayComments()
Dim VisPage As Visio.Page
Dim shp As Visio.Shape
Dim sComment As String
For Each VisPage In ActiveDocument.Pages
For Each shp In VisPage.Shapes
sComment = shp.Cells("Comment").ResultStr("")
if sComment <> "" then Debug.Print shp.Name, sComment
Next shp
Next VisPage
End Sub
Now the fun part, how do you place the comments on the page so they can be
printed.
1) You could add the comments to the shapes text, but the original text will
move.
2) you can create a new shape, but how will you know if your new shape will
not cover something existing.
3) You can do something similar as in the other example and just create one
new shape with all the comments in it. The cleanup will mean moving and
resizing the new 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