|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Sub 图片转换为嵌入式并加2个段落标记()
Dim s As InlineShape
For Each s In ActiveDocument.InlineShapes
'' If s.Type = msoPicture Or _
'' s.Type = msoTextBox Or _
'' s.Type = msoCanvas Or _
'' s.Type = msoEmbeddedOLEObject Or _
'' s.Type = msoIgxGraphic Or _
'' s.Type = msoLinkedOLEObject Or _
'' s.Type = msoGroup Then
s.Select
Selection.Collapse Direction:=wdCollapseStart
Selection.TypeParagraph
s.Select
Selection.Collapse Direction:=wdCollapseEnd
Selection.TypeParagraph
' End If
Next s
End Sub
如上代码,为何F8逐句运行没有问题,而F5运行,会出现错误呢。。。。。
|
|