|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
本帖最后由 chenlifeng123 于 2016-12-22 20:15 编辑
Selection.ShapeRange.TextEffect.FontSize = 120
这一句是调节大小 的,但是不生效.
我根据 提示,修改Selection.HeaderFooter.Shapes.AddTextEffect(PowerPlusWaterMarkObject223380936, "我们", "宋体", 1, False, False, 0, 0).Select中的语句"1",为我想要的字号,也没有反应;录制后的代码不能用.
- Sub 宏7()
-
- ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
- Selection.HeaderFooter.Shapes.AddTextEffect(PowerPlusWaterMarkObject223380936, "我们", "宋体", 1, False, False, 0, 0).Select
- Selection.ShapeRange.Height
- Selection.ShapeRange.TextEffect.NormalizedHeight = False
- Selection.ShapeRange.Line.Visible = False
- Selection.ShapeRange.Fill.Visible = True
- Selection.ShapeRange.Fill.Solid
- Selection.ShapeRange.Fill.ForeColor.RGB = RGB(171, 171, 171)
- Selection.ShapeRange.Fill.Transparency = 0.5
- Selection.ShapeRange.Rotation = 315
- Selection.ShapeRange.LockAspectRatio = True
- Selection.ShapeRange.Height = CentimetersToPoints(7.8) '(4.13)
- Selection.ShapeRange.Width = CentimetersToPoints(15.6) '(16.52)
- Selection.ShapeRange.WrapFormat.AllowOverlap = True
- Selection.ShapeRange.WrapFormat.Side = wdWrapNone
- Selection.ShapeRange.WrapFormat.Type = 3
- Selection.ShapeRange.RelativeHorizontalPosition = wdRelativeVerticalPositionMargin
- Selection.ShapeRange.RelativeVerticalPosition = wdRelativeVerticalPositionMargin
- Selection.ShapeRange.Left = wdShapeCenter
- Selection.ShapeRange.Top = wdShapeCenter
- ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument '退出页眉和页尾设置
- End Sub
复制代码
|
|