答案 0 :(得分:0)
答案 1 :(得分:0)
该代码在页面中迭代单个形状并填充工作簿行
Sub vv()
Dim sh As Shape
Dim ea As Object
' create new excel session
Set ea = CreateObject("Excel.Application")
' make new excel session visible
ea.Visible = True
Dim ew As Object
' create new workbook
Set ew = ea.workbooks.Add
Dim r As Integer
r = 0
' iterate all shapes in active page
For Each sh In ActivePage.Shapes
' if shape have some text add content to workbook
If Len(sh.Text) > 0 Then
r = r + 1
ew.sheets(1).Cells(r, 1) = sh.Text
End If
Next
End Sub
答案 2 :(得分:0)
使用报告导出形状文本。 http://www.hamishking.com/2010/05/27/using-visio-shape-reports-to-export-detail-from-your-diagrams/
答案 3 :(得分:0)
感谢您的回复。我运行了一个报告来导出形状的文本,正如有人建议的那样。 TY