|
<><FONT face=Arial size=2>利用TransferSpreadsheet宏编译成DOCMD命令</FONT></P>
<><FONT face=Arial size=2>如: Private Sub 导出_Click()<FONT color=#3cc457>"作个命令按纽"</FONT></FONT></P>
<><FONT face=Arial size=2> DoCmd.TransferSpreadsheet acExport, 8, "查询1", "D:\表.xls", True, ""</FONT></P>
<P><FONT face=Arial size=2> DoCmd.TransferSpreadsheet acExport, 8, "查询2", "D:\表.xls", True, ""<BR><BR> Beep<BR> MsgBox " 传输结束!请在D:\表.xls文件中查询!"<BR> <BR>End Sub</FONT></P>
<P><FONT face=Arial color=#44bb5c size=2>这样就可以在指定路径的指定电子表格文件中存有2张sheet表了</FONT></P> |
|