|
楼主 |
发表于 2016-9-21 08:18
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
在无极先生的指教下妥善解决了,代码如下:
Sub 艺术字2()
Dim sld As Slide
Set sld = ActivePresentation.SlideShowWindow.View.Slide
With sld.Shapes.AddTextbox(msoTextOrientationHorizontal, 50, 100, 150, 50).TextFrame2
.WordWrap = msoFalse
.AutoSize = msoAutoSizeShapeToFitText
.TextRange.Text = "艺术字测试"
.TextRange.Font.Name = "Aharoni"
.TextRange.Font.NameFarEast = "黑体"
.TextRange.Font.Size = 54
.TextRange.Font.Line.Visible = False
.TextRange.Font.Bold = msoCTrue
.TextRange.Font.Fill.ForeColor.RGB = RGB(0, 0, 255)
With .ThreeD
.PresetMaterial = msoMaterialMatte
.ExtrusionColorType = msoExtrusionColorCustom
.ExtrusionColor = RGB(255, 0, 255)
.Depth = 9600
.BevelBottomType = msoBevelNone
.BevelTopType = msoBevelNone
.SetPresetCamera msoCameraLegacyPerspectiveTopRight
.PresetLighting = msoLightRigLegacyFlat3
.PresetLightingDirection = msoLightingBottom
End With
End With
End Sub
|
|