vba excel to word
来源:互联网 发布:软件项目经理培训视频 编辑:程序博客网 时间:2024/05/16 07:46
将excel中的数据按表格形式保存到word中:(在“工具”菜单中选中"引用"项 )
选择: MicroSoft Word 11.0 Object Libarary
代码:
Public Sub ExportWord() Dim WordApp As Word.Application Set WordApp = CreateObject("Word.Application") WordApp.Visible = True With WordApp Set newDoc = .Documents.Add With .Selection For Each C In Worksheets("Sheet1").Range("A1:B10") .InsertAfter Text:=C.Value Count = Count + 1 If Count Mod 2 = 0 Then .InsertAfter Text:=vbCr Else .InsertAfter Text:=vbTab End If Next .Range.ConvertToTable Separator:=wdSeparateByTabs .Tables(1).AutoFormat Format:=wdTableFormatClassic1 End With End With Set WordApp = Nothing End Sub
- vba excel to word
- Excel用vba自动生成word
- vba中excel和word复制粘贴
- VBA to refresh connections in Excel.
- How to Use Excel VBA for Printing
- Excel VBA - export to UTF-8
- Use VBA to update PPT from Excel
- Word VBA
- Word VBA
- Read numbering string from word document via VBA in Excel
- 如何在Excel VBA 中读写word文档 步骤
- 通过VBA将excel数据导入至word文档
- (word,excel) vba 终止/杀掉/关掉/kill 任意进程(包括word,excel)
- 有word vba 读取excel中存的word待合并路径,合并word文件
- Excel Vba
- excel VBA
- Excel VBA
- EXCEL+VBA
- Widnows定时压缩备份
- Java基础复习:List接口
- 自动化运维之puppet
- Hadoop权威指南第二版翻译,前言
- acm 2081
- vba excel to word
- 黑马程序员-高新技术(反射)
- GATE服务实现的架构
- PQueue
- 无刷新省市三联动(源码)
- MinHeap
- hadoop Partition使用实例
- iOS 上传文件到服务器
- add new node in hadoop without restarting the cluster