Excel条件格式化工具的设计与实现(VB)
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
Excel条件格式化工具的设计与实现
摘要
Excel是一个在各个领域中被广泛应用的电子表格软件。通过它,我们可以很好的组织管理数据,对数据进行统计分析等。在实际应用中,我们发现经常需要根据某种特定的条件,特殊显示部分数据。虽然这种功能可以通过Excel宏来实现,但每次编写类似的代码使人感觉跟不方便。Excel同其它Office组件一样,提供了通过插件进行功能扩展的可能。通过编写和安装插件,我们可以几乎任意地扩展Excel的功能,为我们的工作提供极大的便利。本文详细介绍了一个Excel条件格式化软件的设计和实现。该软件使用COM组件技术,根据Office插件的接口要求,设计了一个Excel的插件。该插件在Excel应用程序的窗口中增加一个工具栏,并在其上创建了一个按键,用于打开格式化设置窗口。软件可以对用户输入的、用字符串表达的判断条件进行计算,并根据计算结果,将满足条件的单元数据设置为用户选择的特殊格式(字体、颜色、字号、修饰等)
关键词:Excel插件;COM组件;接口
The Design and Implementation of the Conditionally Formatting Tool for Excel
Abstract
Excel is an electronic sheet software which is extensively used in various fields. By using it, we can organize and manage data, statistically analysis data easily. In practical applications, we need it usually need to specially show some data under certain conditions. This function can be achieved by using Excel macros. However,such a method is inconvenient in writing similar codes in each time. Excel, as long as other Microsoft Office softwares, povides a standard plug-in interface, also called add-in, to allow users to expand its functionalities. By writing addins for Excel, we can almost unlimitedly to expand its functionality and makes our work more easily and effectively. This paper introduces the design and implementation of an Excel conditional formatting addin, which is implemented by the COM component technique according to the interface requirements of Excel. The conditional formatting addin adds a new Toolbar into Excel, on which there is a button to be used to open the format setting dialog. The software can calculate the results of the condition expressions inputted by the user in the form of string, and according to the result, it sets the format of the cells matching the use-defined condition to special formats (font, color, font size and decoration) that was inputted by the user. [资料来源:THINK58.com]
Key words: Excel Addin COM Component Interface [资料来源:http://THINK58.com]
目  录
[资料来源:http://think58.com]
                                               论文总页数:23页
1引言 1
2 COM组件的实现技术 1
2.1 COM组件技术 1
2.2 接口 2
2.3 插件技术 3
2.4 EXCEL对象模型 4
2.4.1 Excel对象模型的类以及之间的关系 4
2.4.2 使用Excel 5
2.4.3 引用Application对象 5
2.4.4 Application对象常用的属性、方法 6
2.4.5 使用工作薄 6
2.4.6 使用工作表 8
2.5 VB编写组件基本介绍 9
2.5.2 在VB中编写COM组件 9
3 EXCEL条件格式化工具的具体实现 12
3.1插件接口方法 12
3.2 EXCEL插件的实现 13
3.2.1插件实现的功能 13
3.2.2具体功能实现 13
参考文献 21
致    谢 22
声    明 23