设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

OFFICE2007内置图标参照

[复制链接]
11#
发表于 2010-6-18 16:03:32 | 只看该作者
怎样用程序读取呢
12#
发表于 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
13#
发表于 2010-6-23 10:40:38 | 只看该作者
谢谢楼主分享
14#
发表于 2010-7-22 20:35:13 | 只看该作者
不能单独使用吗?那意义不大啊
15#
发表于 2010-8-25 08:34:31 | 只看该作者
最最重要的问题是如何在VBA中引用?
16#
发表于 2013-4-2 14:09:15 | 只看该作者
谢谢楼主啦!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-1 13:14 , Processed in 0.115444 second(s), 28 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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