Excel 中的实时时间 2024-9-30 • microsoft-excel worksheet-function microsoft-excel-2010 我想在 Excel 中获取实时时间。我想要的是例如 If(Now()="08:00","Yes","No") 为此,我需要实时时间,因为我看到现在时间是恒定的,没有变化。如果可能的话,请您帮忙。 答案1 创建模块并输入代码: Sub freshtime() Dim NewTime As Date NewTime = Now + TimeValue("00:00:01") Calculate Application.OnTime NewTime, "freshtime" End Sub 在“工作簿打开”下输入代码: Private Sub Workbook_Open() freshtime End Sub 然后你会得到: 相关内容 是否有支持 apex 记录的 ALIAS 类型的 DNS 服务器? /etc/group 和 /etc/subgid 有什么区别? 我的主目录中有垃圾[关闭] 组装一台新电脑 - 无显示、无蜂鸣声 使用损坏的超级块恢复 LVM 上的 ext4 文件系统 删除 Tikz 图片周围的白色边界框 Ubuntu 22.04 无法识别空 DVD 分析 kmalloc 使用情况 latex/tikz 宏条件 如何在 Ubuntu 上安装 Wire messenger 桌面应用程序/客户端?