设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
楼主: 轻风
打印 上一主题 下一主题

OFFICE2007内置图标参照

[复制链接]
1#
发表于 2010-6-18 16:03:32 | 显示全部楼层
怎样用程序读取呢
2#
发表于 2010-6-18 16:14:57 | 显示全部楼层
大家试试这个代码,不用金钱的。
Public 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 = 800
   
    'Running IDs
    For i = IDStart To IDStop
        Set NewButton = NewToolbar.Controls.Add _
            (Type:=msoControlButton, ID:=2950)
        NewButton.FaceId = i
        NewButton.Caption = i
        NewButton.Style = msoButtonIconAndCaption
    Next i
    NewToolbar.Width = 600
End Sub
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-22 09:44 , Processed in 0.090056 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表