Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]导入代码加了 App.Quit 但程序里还是有excel程序

1楼
shacool 发表于:2011/6/9 8:35:00
[求助]导入代码加了 App.Quit 但程序里还是有excel程序

Dim dlg As New OpenFileDialog
dlg.Filter= "Excel文件|*.xls"
If dlg.ShowDialog = DialogResult.Ok Then
    Dim mg As New Merger
    mg.SourcePath = dlg.FileName
       Dim App As New MSExcel.Application
       Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open(dlg.FileName)
       Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets(1)
       App.Quit 
    mg.SourceTableName = Ws.Name & "$" '指定要合并的表
    mg.Format = "excel" '指定格式
    mg.DataTableName = "表A" '指定接收数据的表
    mg.Merge() '开始合并
End If


图片点击可在新窗口打开查看此主题相关图片如下:12.jpg
图片点击可在新窗口打开查看

附近在这个帖子中:

http://www.datasoft.com.cn/dispbbs.asp?boardid=2&Id=10486


2楼
狐狸爸爸 发表于:2011/6/9 8:49:00

我已经回复你的另一个帖子

3楼
shacool 发表于:2011/6/9 9:08:00
谢谢啊!book.Sheets(0).Name代码我就不知道有
4楼
狐狸爸爸 发表于:2011/6/9 9:09:00
以下是引用shacool在2011-6-9 9:08:00的发言:
谢谢啊!book.Sheets(0).Name代码我就不知道有

http://help.foxtable.com/topics/1152.htm

 

共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.