网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 大学论文导航 设计下载 最新论文 下载排行 原创论文 设计图标 Ppt模板 Flash素材 PSD素材 JS代码
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 编程文档 > VB > 正文

Excel条件格式化工具的设计与实现

来源:http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 16/02/11

文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学的各位小编整理了VB-Excel条件格式化工具的设计与实现的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!

包括论文,设计,论文字数:15156,页数:30

摘要
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

目  录


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条件格式化工具的设计与实现......
  • 上一篇资讯: [VB]
  • 版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号