2016年excel的计时器 [英] Timers for excel 2016

查看:85
本文介绍了2016年excel的计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请原谅我的英语我是一名IT语言新手。  我正在寻找帮助在我的excel文件中创建计时器。

excuse me for my english I'n a newbe in IT language.   I am looking for help to create timers in my excel file.

我玩的游戏你可以互相攻击和防守,我想制作一个我所有对手的excel文件知道当他们的安全时间到期时。但是有很多玩家,所以我需要列出一个列表,我可以放置玩家的名字,当他们的保护时间到期时,
。有人可以帮我实现我的计时器excel文件吗?

I play a game where you can attack and defend each other and I want to make an excel file of all my opponents to know when their safety time expires. But there are many many players so I need to make a list where I can place the names of the players and when their protection times expires with timers. Can someone please help me in realizing my timer excel file?

提前多多感谢...

Roy

推荐答案

您好,

您可以使用
Application.OnTime Method(Excel)

例如,下面的代码会在1s后显示消息框。

For example, the code below would show the messagebox after 1s.

Sub Demo()
Application.OnTime Now + TimeValue("00:00:1"), "showMsg"
End Sub
Sub showMsg()
MsgBox "Time's up"
End Sub

问候,

Celeste


这篇关于2016年excel的计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆