Tables("表名").Filter = "数量 is Not Null" Tables("表名").SaveExcel("c:\data\") & Format(Date.Today,"yyyyMMdd") & "申购单.xls","表名") Dim m As New MailSender m.Host = "smtp.21cn.net" m.Account = "xiaoliu" m.Password = "xiaoliu1234567" m.From = "xiaoliu@Sina.com.cn" m.To = "meili@Sina.com.cn" m.Title = "初稿已经完成" m.Content = "附件为初稿, 请您审阅!" m.AddAttachments("c:\data\") & Format(Date.Today,"yyyyMMdd") & "申购单.xls") m.SendAsync()
|