简体   繁体   English

如何在PowerPoint中自动进行未来日期更新?

[英]How can I have a FUTURE date update automatically in PowerPoint?

I have a presentation used for our new employee orientation that lists when specific forms are due. 我有一个用于新员工入职介绍的演示文稿,列出了何时应提交特定表格。 For example, Health Insurance form must be turned in 60 days from hire date. 例如,必须从雇用之日起60天内提交健康保险表格。 I would like the date to automatically update to be 60 days from the current date each time the presentation is ran. 我希望每次运行演示文稿时,日期都自动从当前日期更新为60天。

I currently have a text box linked to an Excel spreadsheet which has a formula =NOW()+60 . 我目前有一个链接到具有公式=NOW()+60的Excel电子表格的文本框。 This works great, but it still does not update unless you first double click on the text box to activate/open the Excel spreadsheet, which then refreshes to the current date and updates the correct future date. 这很好用,但是除非您先双击文本框以激活/打开Excel电子表格,然后它刷新到当前日期并更新正确的将来日期,否则它仍然不会更新。

This is not a workable solution however because in the first place there are about 6 different instances (embedded in over 100 slides) of these future dates that need to be double clicked and updated, and in the second place, I am not running the presentation myself, but instead a subject matter expert is, who is NOT technically savvy enough to even double-click text boxes to force a refresh. 但是,这不是一个可行的解决方案,因为首先需要双击和更新这些未来日期的大约6个不同实例(包含在100张幻灯片中),其次,我没有运行演示文稿我本人,而是一位主题专家,他在技术上不够聪明,甚至无法双击文本框来强制刷新。

I am hoping find code that would either insert a future date automatically directly into the PowerPoint text box -or- open and refresh the linked Excel objects each time the PowerPoint is opened. 我希望找到的代码可以将将来的日期直接自动插入PowerPoint文本框中-或-每次打开PowerPoint时打开并刷新链接的Excel对象。

Any help would be appreciated, thanks. 任何帮助,将不胜感激,谢谢。

If you have to doubleclick to get the formula to refresh, it seems likely that the spreadsheet is embedded, not linked. 如果必须双击以刷新公式,则似乎电子表格是嵌入式的,而不是链接的。 If you link the info instead, you'd only need to open the Excel file and save again to force the date to change, then open the PPT, which'd see the updated Excel file and update the links. 如果改为链接信息,则只需打开Excel文件并再次保存以强制更改日期,然后打开PPT,即可查看更新的Excel文件并更新链接。

PPT will open/close Excel once per link; PPT将每个链接打开/关闭Excel一次; if you have lots of links, this can be quite time-consuming, but for six instances, I doubt it'd be bad. 如果您有很多链接,这可能会非常耗时,但是对于六个实例,我怀疑它会很糟糕。

This could also be done in code, but then you'd need to turn it the code into an add-in and install it on the end-user's PC to give them a one-click solution. 这也可以用代码完成,但是然后您需要将其转换为加载项并将其安装在最终用户的PC上,以为他们提供一键式解决方案。 If they can't be trusted to doubleclick the dates to update them, I'm not sure you'd want to teach them how to run macros embedded in the presentation itself. 如果不能信任他们双击日期来更新它们,我不确定您是否要教他们如何运行演示文稿本身中嵌入的宏。 If creating an add-in is a possibility, give a shout and I'll make a couple suggestions on how you could do the coding. 如果可以创建外接程序,请大声疾呼,我将就如何进行编码提出一些建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用VBA将Excel的将来日期/时间插入Powerpoint - How to insert future date/time from Excel into Powerpoint using VBA 如何自动更新在 excel 中具有链接并具有 vba 代码的 powerpoint 中的多张幻灯片? - How will I automatically update multiple slides in powerpoint which has a link in excel and has vba codes? Excel,如何设置一个单元格自动更新到今天的日期? - In Excel, how can I set a cell to automatically update to today's date? 如何在 excel 中自动创建和更新月份日期列表? - How do I automatically create and update month date list in excel? 记录数据时自动更新日期 - Update Date automatically when I log data 如何使此公式自动更新工作表参考? - How can I make this formula automatically update sheet reference? 如何检测(和更改)Excel和PowerPoint中的Charts中使用的字体将遵循该样式还是由用户指定? - How can I detect (and change) whether the font used in Charts in Excel and PowerPoint will follow the style or have been specified by a user? 如何粘贴表格并保持格式从Excel到Powerpoint? - How can I paste a table and keep formatting from Excel to Powerpoint? 如何在 PowerPoint 中自动更新 Excel 表格和图表数据? - How can I automate updating excel table and chart data in PowerPoint? 如何根据Excel中的单元格更改来更新日期? - How can I UPDATE a date based on a cell change in Excel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM