I'm trying to read comments for figures in a document using the code below
For Each iShp In .InlineShapes
iShp.Select
If Selection.Comments.Count > 0 Then
MsgBox Selection.Comments(1).Range.text
End If
Next
The shapes are selected properly, however the count is always 0...
What am I missing?
InlineShapes
has a comments property. What you have there is taking the comments from theselection
, of which there are not any. There is.AlternativeText
and.Title
for shapes. – Warcupine