必须捕获 Word、Excel 和 Powerpoint 文档的文档属性

发布于 2024-07-29 08:39:23 字数 261 浏览 1 评论 0原文

我是 VBA 和这个领域的新手。 我想在创建或保存文档时捕获文档属性,例如(文档标题、主题、作者、团队、经理、公司等...)。 此属性捕获是必须的,我想对我公司的所有 Word、Excel、Powerpoint 用户实施。 这怎么可能。 如果我写一个宏,是否可以部署所有的MS-Office用户。 或者一个VB程序就可以了? 我所需要的只是强制输入所有文档的文档属性。 这些属性也可以从用户计算机的模板文件中获取。 这可以用 VBA 或任何其他简单的方法来实现吗?

I am new to VBA and this area. I would like to capture the document proporties like (document title, subject, author, team, manager,company etc...) while create or saving the document. This properties capture is must and i would like to implement to all the Word, Excel, Powerpoint users in my company.
How this can be possible. If I wrote a macro, is it possible to deploy all the MS-Office users. or a VB program will do?.
All i need is to make mandatory to input document properties for all the documents. these properties can also be fetched from a template file from the user machine.
Is this possible in VBA or any other easy ways to do it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独夜无伴 2024-08-05 08:39:23

要强制用户在保存文档之前填写所有属性,您可以创建加载项(Excel、Word 和 PowerPoint 各一个),拦截“before save”事件并检查文档属性。 如果加载项检测到某些属性尚未填写,它可以提示用户并取消保存。

在这 3 个应用程序中创建加载项的方法相似(但不相同)。 当然,您还必须确保所有用户计算机上都安装了加载项。

To force users to fill in all the properties before saving the document, you can create add-ins (one for each of Excel, Word and PowerPoint) that intercept the "before save" event and check the document properties. If the add-in detects some properties that have not been filled in, it can prompt the user and cancel the save.

The means by which you can create an add-in is similar (but not identical) across the 3 applications. You would of course also have to ensure that the add-ins were installed on all your users machines.

这个俗人 2024-08-05 08:39:23

如果您只想读取(或修改)属性,可以使用 Office 文档属性Reader 用于读取和写入 Office 文档的属性,甚至无需安装 Office。 这适用于所有 Office 应用程序。

If you just want to be able to read (or modify) the properties, you can use the Office Document Property Reader to read and write properties of Office documents, without even needing Office installed. That works across all Office applications.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文