![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Excel VBA
nksmiles
这个作者很懒,什么都没留下…
展开
-
识别 CommandBar 图标的 FaceID
原文地址:http://spreadsheetpage.com/index.php/site/tip/identifying_commandbar_images 从 Excel 97 到 Excel 2003 都在内置的菜单和工具栏中使用了大量的图标。你可以通过设置 FaceID 属性为特定的整数把这些内置的图标用在你的自定义菜单和工具栏上。但问题是如何确定每个图标对应的整数。翻译 2012-03-14 16:23:09 · 5445 阅读 · 0 评论 -
使用Excel宏实现数据自动处理
因为工作关系,需要对一些数据进行一些重复性的处理工作,为了提高效率,录制宏进行重复处理非常有效,但录制的宏有大量无效代码,而且需要处理的数据源有两种不同的格式,通过宏录制和自己的处理,可以很好的解决这些问题。 Option ExplicitSub SpareCatalogueFormat() Dim sMessage As String Dim answer A原创 2012-04-01 12:40:00 · 14138 阅读 · 0 评论 -
Excel通过宏生成自定义菜单和按钮
Sub CreateToolbar(ByVal b As Boolean) If Not b Then End Dim myButton As Variant Dim sMessage As String ''' Reset menus and buttons, delete if exist. On Error Resum原创 2012-04-06 10:19:44 · 4264 阅读 · 0 评论 -
两种不同方法判断Excel表格中是否存在指定数值
第一种方法,使用For循环: For Each cell In Range("I1:I1000") i = InStr(cell.Value, "1050") If i > 0 Then bExist = True Exit For End If i = 0 Next原创 2012-04-10 17:58:23 · 2889 阅读 · 0 评论 -
如何让excel冻结窗格在打印的每页出现
打印时标题可以在每一页都显示,点“文件”菜单,再点“页面设置”,在弹出来的窗口上选中“工作表”选项卡,“打印标题”,“顶端标题行”或者“左端标题行”,右边点有红色小箭头的按扭,出来一个黑色的小箭头,然后再标题行或者标题列上点一下,确定,OK。 File --> Page Setup --> Sheet (tab) --> Print titles, Rows to repeat at原创 2012-04-12 08:37:18 · 17030 阅读 · 0 评论