- 精华
- 活跃值
-
- 积分
- 458
- 违规
-
- 印币
-
- 鲜花值
-
- 在线时间
- 小时
累计签到:36 天 连续签到:1 天
|
是的 就是需要定制 我先公开源码,有人说这个800印币
Sub chaifen()
'-------------------------------------------------------------------------------------------------------------
'打散文本
'-------------------------------------------------------------------------------------------------------------
Public Sub BreakApartTextIntoSingleLine(ShpRng As ShapeRange, CDRDoc As Document, Optional Delimiter$, Optional KeepDeli As Boolean = False, Optional LinesOnly As Boolean)
Dim TempShpRng As New ShapeRange
On Error GoTo ErrLine
CDRDoc.Unit = cdrMillimeter
If ShpRng.Count = 0 Then
Exit Sub
Else
Set ShpRng = ShpRng.Shapes.FindShapes(query:="@type='text:artistic' or @type='text:paragraph'")
If ShpRng.Count = 0 Then GoTo ErrLine
End If
Do While ShpRng.Count > 0
TempShpRng.Add ShpRng.Shapes(1)
ShpRng.RemoveRange TempShpRng
BreakApartText TempShpRng, CDRDoc, Delimiter, KeepDeli, LinesOnly, False
If 1 < TempShpRng.Count Then
ShpRng.AddRange TempShpRng
End If
TempShpRng.RemoveAll
Loop
ErrLine:
End Sub
|
|