请下载论文,论文或程序为doc或rar格式,只上传部分目录查看,如果需要此论文或程序,请点击-下载论文,下载需要资料或是论文。Excel条件格式化工具的设计与实现_论文和
程序及源代码
,因文件夹或是目录太多,只读取部分文件显示,需要就下载参考
包括目录名称:
Excel条件格式化工具的设计与实现_论文和程序及源代码 - 1 文件数, 1 目录数.
包括目录名称:
ExcelAddin - 14 文件数, 0 目录数.
..\Btn1.bmp
..\CFormula.cls
..\Connect.DCA
..\Connect.Dsr
..\CSegment.cls
..\excelDlgs.txt
..\Excel条件格式化工具的设计与实现.doc
007年 7 月 24日
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.
Key
words: Excel Addin; COM Component; Interface
目 录
论文总页数: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
Excel条件格式化工具的设计与实现
1引言
我们生活的这个世界是丰富多彩的,几乎所有的知识都来自于视觉。也许无法记住一连串的数字,以及它们之间的关系和趋势。但是可以很轻松地记住一幅图画或者一个曲线。Excel就具有许多高级的制图功能,同时使用起来也非常方便。它不仅可以用来制作电子表格、完成许多复杂的数据运算,还可以进行数据的分析和预测。Excel
文档是实际
工作学习中最为
常用的
文档格式之一,为了增强Word、Excel等
软件的自动化能力,人们开发了各种提高办公效率的软件,它们大多数实用、专业性强。为了避免用户做大量重复性的工作,提高Office办公效率,达到提高其实用功能的目的,可根据具体工作内容要求,编写出最具本地化、个性化、最合适的软件。
2 COM组件的实现技术
2.1 COM组件技术
COM 是微软公司为了
计算机工业的软件生产更加符合人类的行为方式开发的一种新的软件开发技术。在C