zoukankan      html  css  js  c++  java
  • 转:修改shape的文字

    Sub 修改shape的文字()
    '
    ' 修改shape的文字 宏
    '

    '
        ActiveSheet.Shapes.Range(Array("Flowchart: Connector 193")).Select

        Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = "点"
        With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 1). _
            ParagraphFormat
            .FirstLineIndent = 0
            .Alignment = msoAlignLeft
        End With
        With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 1).Font
            .NameComplexScript = "+mn-cs"
            .NameFarEast = "+mn-ea"
            .Fill.Visible = msoTrue
            .Fill.ForeColor.ObjectThemeColor = msoThemeColorLight1
            .Fill.ForeColor.TintAndShade = 0
            .Fill.ForeColor.Brightness = 0
            .Fill.Transparency = 0
            .Fill.Solid
            .Size = 11
            .Name = "+mn-lt"
        End With
        Selection.ShapeRange.TextFrame2.VerticalAnchor = msoAnchorMiddle
        Selection.ShapeRange.TextFrame2.TextRange.ParagraphFormat.Alignment = _
            msoAlignCenter
        Selection.ShapeRange.TextFrame2.TextRange.Font.UnderlineStyle = _
            msoUnderlineSingleLine
        With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 1).Font.Fill
            .Visible = msoTrue
            .ForeColor.RGB = RGB(0, 112, 192)
            .Transparency = 0
            .Solid
        End With
        Selection.ShapeRange.TextFrame2.TextRange.Font.UnderlineStyle = _
            msoUnderlineSingleLine
    End Sub
    ---------------------
    作者:xploverain
    来源:CSDN
    原文:https://blog.csdn.net/xploverain/article/details/54375932
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    获取账号所有联系人
    获取用户的初始信息展示
    pip升级的错误
    二维码长轮询获取登陆并获取用户基本信息
    获取微信二维码
    WebChat理清流程
    python的requests模块
    python的单例模式和__new__方法
    matplotlib 基础知识汇总
    pandas数据分析案例:美国2012年总统候选人政治献金数据分析
  • 原文地址:https://www.cnblogs.com/zhang-pengcheng/p/10499730.html
Copyright © 2011-2022 走看看