ppt使用vba编写倒计时
For those of us who have our minds deeply into VB.NET, the journey back to VB6 can be a confusing trip. Using a Timer in VB6 is like that. At the same time, adding timed processes to your code is not obvious to new users of VBA Macros.
对于那些对VB.NET有深入了解的人来说,回到VB6的旅程可能会令人困惑。 在VB6中使用计时器就是这样。 同时,对于VBA宏的新用户来说,向代码中添加定时进程并不明显。
新手计时器 ( Timers For Newbies )
Coding a Word VBA macro to automatically time a test that was written in Word is a typical reason for using a timer. Another common reason is to see just how much time is being taken by different parts of your code so you can work on optimizing the slow sections. Sometimes, you might want to see if anything is happening in the application when the computer seems to be just sitting there idle, which can be a security problem. Timers can do that.
编码一个Word VBA宏自动时间写在Word中的测试是使用计时器的典型原因。 另一个常见的原因是查看代码的不同部分占用了多少时间,以便您可以优化慢速段。 有时,当计算机似乎只是闲置时,您可能想查看应用程序中是否发生了任何事情,这可能是一个安全问题。 计时器可以做到这一点。