Could Anyone Show List of Button Face Id in Excel 2010

后端 未结 6 2167
独厮守ぢ
独厮守ぢ 2021-02-06 05:31

I would like to create costum menu button using VBA in my excel 2010 file using predefined excel button that use face id. In my case i would like to use \"lock\" and \"refresh\

6条回答
  •  -上瘾入骨i
    2021-02-06 06:15

    short script writes ten (loop set for 10) FaceID's add. as entry into toolbar Tab "Add-In" and with "Benutzerdefinierte Symbolliste löschen" - you erase this add entry ( mark and right mouse click) - works with excel 2010/2013

    Sub FaceIdsAusgeben()
    Dim symb As CommandBar
    Dim Icon As CommandBarControl
    Dim i As Integer
    On Error Resume Next
    Set symb = Application.CommandBars.Add _
    ("Symbole", msoBarFloating)
    For i = 1 To 10
    Set Icon = symb.Controls.Add(msoControlButton)
    Icon.FaceId = i
    Icon.TooltipText = i
    Debug.Print ("Symbole = " & i)
    Next i
    symb.Visible = True
    End Sub
    

提交回复
热议问题