0

I have to code an automated mail. This is a weekly report, containing texts, outlook tables, and up-to-dates excel charts. edit: before sending it, I need to check the mail.

I don't know what is the better way to code that and I want your point of view.

My first option is to create a special workbook with a new macro, and do everything with this new macro. I don't see any problem in managing multiple others workbooks and charts. But I am not sure if I can easyly works with the mail. Would it be possible to write/create table in outlook from excel ?

My second option is to work with outlook. I think I can write some code somewhere to launch excel macros and updates my tables. But i don't know much about this.

What would be the better approach ?

Edit: Let's say that I am just a little intern (lucky enough to make others thing than coffee), and the report is for my manager's manager's manager. No flexibility.

4

2 回答 2

1

我只是将包含报告信息的工作簿通过电子邮件发送给他们。如果他们是您公司的员工并且他们识别出您的电子邮件(或公司的电子邮件),那么只需将工作簿作为附件发送给他们,其中包含所有报告,就不应该存在安全问题。您应该可以从 Excel 中做到这一点:http: //msdn.microsoft.com/en-us/library/office/ff458119 (v=office.11​​).aspx

您可以更新 excel 文件,然后将您的数据连接在一起以形成电子邮件正文,如果您愿意,也可以通过电子邮件发送工作簿本身或另一个更新的工作簿。

如果您是 VBA 的初学者,这将是一个大项目,但肯定是可行的。

于 2013-05-28T16:18:58.883 回答
-1

如果您使用 Outlook,您还可以访问“SkyDrive”,它允许您将文档和文件上传到可共享文件夹,然后向共享该文件夹的人发送警报电子邮件。可能比编写一些肯定会带来永无止境的维护负担的代码要容易得多。

于 2013-05-28T15:50:00.147 回答