在创建word文档时触发宏 [英] Triggering the macros when creating word document

查看:84
本文介绍了在创建word文档时触发宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






使用Microsoft Flow我根据我创建的单词模板将word文档创建到SharePoint文档库中。该模板包含3个宏:1。格式化文本,2。插入在线图片,3。发送文档的电子邮件。



我遇到的问题,我是否需要一种方法来自动触发在创建文档时运行的宏。

Hi,

Using Microsoft Flow I create word documents into a SharePoint document library based off a word template I created. The template contains 3 macros: 1. to format text, 2. to insert an online pic, 3. to send an email of the doc.

The problem I have, is I need a way to automatically trigger the macros to run when the document is created.


目前我已将宏设置为Open()函数运行文档打开时,但这还不够好。我尝试了New()函数,但没有运气。

Currently I have set the macros to the Open() function which runs when the document is opened, but this isn't good enough. And I have tried the New() function, but no luck.


所以我的问题是,我能用PowerShell实现这个吗?

So my question is, am I able to achieve this using PowerShell?


*单词文档存储在SharePoint Online文档库中。

*The word documents are stored inside SharePoint Online document library.


谢谢。

推荐答案

你好t3ch21,

Hi t3ch21,

>>我可以使用PowerShell实现这一目标吗?

>> am I able to achieve this using PowerShell?

在我的选项中,无法满足您的要求。

In my option, it is impossible to achieve your requirement.

首先,无法运行Microsoft Flow中的宏。

First, it is impossible to run macro in Microsoft Flow.

我们可以在Microsoft Flow期间运行PowerShell脚本,但我们需要Office应用程序来运行宏,但在Microsoft Flow期间无法访问任何Office应用程序。

We could run PowerShell scripts during Microsoft Flow, but we need Office application to run Macros, but you could not access any Office application during Microsoft Flow.

最诚挚的问候,

Tao Zhou


这篇关于在创建word文档时触发宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆