K效果很好,但是如果我再次运行程序,它会提示我覆盖这个文件。
我的目标是不要看到excel,所以我该如何避免这种情况?
/ y?ty再次-----原始消息-----来自:Shawn Fessenden致:***izkitawg@netscape.net;
'VRF'发送:星期四,2006年7月13日18:16:48 -0500主题:RE:[vrf] Excel问题>任何人都知道一种简单的方法来发送excel a>命令来保存当前文件.Save()是一种方法
工作簿类。
如果您没有给出文件名(即,如果您没有首先打开文件),请使用SaveAs(文件名)以避免Excel SaveAs文件名对话框。设置wbk = CreateObject(“Excel.Sheet”)
; //写一些data.wbk.SaveAs(“MyFile.xls”); - SHAWN- ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送电子邮件至:“vrf-request
@ lists.it.agilent.com“在邮件正文中带有订阅单词。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件
“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”。
以上来自于谷歌翻译
以下为原文
K works great, but if I run the program again it prompts me about
overwriting this file. I aim not to see excel at all so how do I avoid
this? /y ?
ty again
-----Original Message-----
From: Shawn Fessenden
To: [email=***izkitawg@netscape.net]***izkitawg@netscape.net[/email]; 'VRF'
Sent: Thu, 13 Jul 2006 18:16:48 -0500
Subject: RE: [vrf] Excel Problem
> Anyone know of an easy way to send excel a
> command to save the current file.
Save() is a method of the Workbook class. If you haven't given a file
name
(i.e., if you didn't open the file in the first place), use
SaveAs(filename)
to avoid the Excel SaveAs filename dialog.
Set wbk = CreateObject("Excel.Sheet");
//Write some data.
wbk.SaveAs("MyFile.xls");
-SHAWN-
---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
K效果很好,但是如果我再次运行程序,它会提示我覆盖这个文件。
我的目标是不要看到excel,所以我该如何避免这种情况?
/ y?ty再次-----原始消息-----来自:Shawn Fessenden致:***izkitawg@netscape.net;
'VRF'发送:星期四,2006年7月13日18:16:48 -0500主题:RE:[vrf] Excel问题>任何人都知道一种简单的方法来发送excel a>命令来保存当前文件.Save()是一种方法
工作簿类。
如果您没有给出文件名(即,如果您没有首先打开文件),请使用SaveAs(文件名)以避免Excel SaveAs文件名对话框。设置wbk = CreateObject(“Excel.Sheet”)
; //写一些data.wbk.SaveAs(“MyFile.xls”); - SHAWN- ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送电子邮件至:“vrf-request
@ lists.it.agilent.com“在邮件正文中带有订阅单词。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件
“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。在“www.oswegosw.com/vrf_archive/”上搜索“非官方vrf档案”。
以上来自于谷歌翻译
以下为原文
K works great, but if I run the program again it prompts me about
overwriting this file. I aim not to see excel at all so how do I avoid
this? /y ?
ty again
-----Original Message-----
From: Shawn Fessenden
To: [email=***izkitawg@netscape.net]***izkitawg@netscape.net[/email]; 'VRF'
Sent: Thu, 13 Jul 2006 18:16:48 -0500
Subject: RE: [vrf] Excel Problem
> Anyone know of an easy way to send excel a
> command to save the current file.
Save() is a method of the Workbook class. If you haven't given a file
name
(i.e., if you didn't open the file in the first place), use
SaveAs(filename)
to avoid the Excel SaveAs filename dialog.
Set wbk = CreateObject("Excel.Sheet");
//Write some data.
wbk.SaveAs("MyFile.xls");
-SHAWN-
---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
举报