设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> Visual Basic >> VB中使用EXCEL输出
精品推荐
Visual Basic点击TOP10
·VB中使用EXCEL输出
·用vb实现DES加解密算法(三)--解密
·vsprint打印实例
·VB实现SQL Server数据库备份/恢复
·DirectX 7 编程初步
·用vb实现DES加解密算法(二)--加密
·VB 贪吃蛇 单人版游戏 (原作)
·如何在IE右键菜单中添加菜单项以及如何添加IE任务栏按钮
·VB6.0中通过MSChart控件调用数据库
·让VB应用程序支持鼠标滚轮
编程开发点击TOP10
·数字小键盘指法练习
·用C语言编通讯录程序(初学者级别的)
·ASP.NET 程序中常用的三十三种代码
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·java笔试题
·Modem 常用AT指令集
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

VB中使用EXCEL输出

作者: 来源:网络文章 时间:2005-12-13 17:19:34

VB中使用EXCEL输出(9)     xlsheet.Columns(8).ColumnWidth = 7
    xlsheet.Columns(9).ColumnWidth = 7
    xlsheet.Columns("A:I").Font.Size = 9
    xlsheet.Columns("A:I").VerticalAlignment = xlVAlignCenter  '垂直居中
    xlsheet.Columns(1).HorizontalAlignment = xlHAlignCenter '1列水平居中对齐
    xlsheet.Columns(2).HorizontalAlignment = xlHAlignLeft '2列水平左对齐
    '******************************写入标头************************************
    xlsheet.Rows(1).RowHeight = 35
    xlsheet.Range(xlsheet.Cells(1, 1), xlsheet.Cells(1, 9)).MergeCells = True
    xlsheet.Cells(1, 1).Font.Size = 14
    xlsheet.Cells(1, 1).Font.Bold = True
    xlsheet.Cells(1, 1).Value = "机械台时、组时费汇总表"
   
    xlsheet.Cells(2, 9).Value = "单位:元"
    xlsheet.Range(xlsheet.Cells(3, 1), xlsheet.Cells(5, 1)).MergeCells = True
    xlsheet.Cells(3, 1).Value = "编号"
    xlsheet.Range(xlsheet.Cells(3, 2), xlsheet.Cells(5, 2)).MergeCells = True
    xlsheet.Cells(3, 2).Value = "机械名称"
    xlsheet.Range(xlsheet.Cells(3, 3), xlsheet.Cells(5, 3)).MergeCells = True
    xlsheet.Cells(3, 3).Value = "台时费"
    xlsheet.Range(xlsheet.Cells(3, 4), xlsheet.Cells(3, 9)).MergeCells = True
    xlsheet.Cells(3, 4).Value = "其      中"
    xlsheet.Range(xlsheet.Cells(3, 3), xlsheet.Cells(5, 3)).MergeCells = True
    xlsheet.Cells(3, 3).Value = "台时费"
    xlsheet.Range(xlsheet.Cells(4, 4), xlsheet.Cells(5, 4)).MergeCells = True
    xlsheet.Cells(4, 4).Value = "折旧费"
    xlsheet.Range(xlsheet.Cells(4, 5), xlsheet.Cells(5, 5)).MergeCells = True
    xlsheet.Cells(4, 5).Value = "修理替换费"

共11页 9 7 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [118 :>

VB中使用EXCEL输出 相关文章:
VB中使用EXCEL输出 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com