标题:vb 合并word可是只能合并字符串。我想合并格式比如表格图片
只看楼主
zhuyongxing
Rank: 6Rank: 6
等 级:侠之大者
威 望:1
帖 子:234
专家分:482
注 册:2009-8-5
结帖率:91.43%
 问题点数:0 回复次数:1 
vb 合并word可是只能合并字符串。我想合并格式比如表格图片
Private Sub Command1_Click()
Dim a As Word.Application
Dim b As Word.Document
Dim c As Word.Document
Dim e As Word.Range
Set a = CreateObject("Word.Application")
Set b = a.Documents.Add(Visible:=False)
Set c = a.Documents.Open(FileName:="d:\1\2.doc", ReadOnly:=True)
a.Selection.WholeStory
a.Selection.Copy
      b.Content.InsertAfter Clipboard.GetText
     
c.Close
Set c = a.Documents.Open(FileName:="D:\1\3.doc", ReadOnly:=True)
a.Selection.WholeStory
a.Selection.Copy
    b.Content.InsertAfter Clipboard.GetText
c.Close
Set c = Nothing
b.SaveAs "d:\a.doc"
b.Close
Set b = Nothing
Set a = Nothing

End Sub
搜索更多相关主题的帖子: 图片 
2011-07-02 15:15
zhuyongxing
Rank: 6Rank: 6
等 级:侠之大者
威 望:1
帖 子:234
专家分:482
注 册:2009-8-5
得分:0 
自己解决了发的问题怎么老没人回答呢
2011-07-05 13:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-344523-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.099378 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved