faceID 和 对应图标 查看

在word或Excel的宏中运行如下函数即可
Sub ShowFaceIDs()
     Dim NewToolbar As CommandBar
     Dim NewButton As CommandBarButton
     Dim i As Integer, IDStart As Integer, IDStop As Integer
    
 '   Delete existing FaceIds toolbar if it exists
     On Error Resume Next
     Application.CommandBars("FaceIds").Delete
     On Error GoTo 0
    
 '   Add an empty toolbar
     Set NewToolbar = Application.CommandBars.Add _
         (Name:="FaceIds", temporary:=True)
     NewToolbar.Visible = True
    
 '   Change the following values to see different FaceIDs
     IDStart = 1
     IDStop = 1200
    
     For i = IDStart To IDStop
         Set NewButton = NewToolbar.Controls.Add _
             (Type:=msoControlButton)
         NewButton.FaceId = i
         NewButton.Caption = "FaceID = " & i
     Next i
     NewToolbar.Width = 1000
 End Sub

 

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-01-03
  • 2021-12-27
  • 2022-01-24
  • 2021-07-24
  • 2022-12-23
猜你喜欢
  • 2022-02-03
  • 2021-12-18
  • 2021-06-08
  • 2021-09-23
  • 2021-10-05
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案