Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道从哪里开始。我需要在 C 列中有时间,当我单击运行宏按钮时,我需要一个秒表才能从 C 列的时间开始并向下运行。谢谢你的帮助。
下面是一个示例程序。
Sub stopWatch() Dim startTime As Date Dim entTime As Date Dim mins As Long startTime = Time 'you code here entTime = Time mins = DateDiff("n", startTime, entTime) MsgBox "Difference in minutes" & mins End Sub