|
本帖最后由 ning84 于 2024-8-7 22:10 编辑
- Function TxtEffect(ShpRng As ShapeRange, Ww, Hh, Ll, Tt)
- With ShpRng.TextFrame2
-
- With .TextRange.Font
- .Bold = msoCTrue
- .Name = "黑体"
- End With
-
- .AutoSize = msoAutoSizeShapeToFitText
- .WordWrap = msoCTrue
- End With
- '
- With ShpRng
- .Fill.ForeColor.RGB = RGB(175, 238, 238)
- .TextEffect.PresetShape = msoTextEffectShapeCanUp
- '.BackgroundStyle = msoBackgroundStylePreset1
- .TextEffect.Alignment = msoTextEffectAlignmentCentered
-
- .Width = Ww
- .Height = Hh
- .Left = Ll
- .Top = Tt
- .Shadow.Style = msoShadowStyleOuterShadow
- .ShapeStyle = msoLineStylePreset20
- End With
- End Function
复制代码
Sub Ll()
Dim Shp As Shape, ShpRng As ShapeRange
Set Pres = Application.ActivePresentation
Set ShpRng = Application.ActiveWindow.Selection.ShapeRange
Debug.Print ShpRng.Name, ShpRng.Count
TxtEffect ShpRng, 310, 70, 405, 5
End Sub
MsoPresetTextEffectShape
MsoShapeStyleIndex
|
|