TimeValue(Now) = TimeValue µLªkµo¨Æ¥ó??
- ©«¤l
- 760
- ¥DÃD
- 250
- ºëµØ
- 0
- ¿n¤À
- 1023
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-12-22
|
TimeValue(Now) = TimeValue µLªkµo¨Æ¥ó??
¤u§@ªíªºcalculate¨Æ¥ó
TEST.rar (4.5 KB)
Private Sub Worksheet_Calculate()
If TimeValue(Now) = TimeValue("18:25:00 ") Then
[A2] = 1
End If
End Sub
§Ú§â®É¶¡§ï¬°¥Ø«e®É¶¡(±±¨î¥xªº®É¶¡)¥[¤@¤ÀÄÁ, µ¥¤F¤@¤ÀÄÁ¤]¨S¤ÏÀ³?®É¶¡¨ì¤F¨S¿ìªkIJµo¨Æ¥ó??? |
|
|
|
|
|
|
- ©«¤l
- 760
- ¥DÃD
- 250
- ºëµØ
- 0
- ¿n¤À
- 1023
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-12-22
|
¥»©«³Ì«á¥Ñ t8899 ©ó 2013-6-29 10:29 ½s¿è
1#¼gªkªº·N«ä¬O·í¤u§@ªíªº¤½¦¡¦³«·spºâ®É¡A¤~·|¥h°õ¦æWorksheet_Calculate¸Ì±ªºµ{¦¡
¥L¤£ ...
stillfish00 µoªí©ó 2013-6-29 09:21
§ÚÀ´¤F
¦]¬°§Úªº¤u§@ªí¡A¦³§ìªÑ²¼¦æ±¡, Àx¦s®æ·|¤@ª½ÅÜ°Ê
§Ú¦b´ú¸Õ®É¡A¤w¸g¦¬½L¤F.............
©Ò¥H If TimeValue(Now) = TimeValue("18:25:00 ") Then
À³¸Ó¤]¬O¨S°ÝÃDªº!
§Ú¤U©P¤@¦b´ú¸Õ¬Ý¬Ý, ÁÂÁÂ
¥t¥~½Ð±Ð¤@¤U
If Format(Now, "hh:mm:ss") = "14:54:00" Then
[R31] = 1
¤Î SHEET1ªºR31=1 ===>¦¹¬qªº»yªk??
End If |
|
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-6-29 09:24 ½s¿è
¦^´_ 3# t8899
1#¼gªkªº·N«ä¬O·í¤u§@ªíªº¤½¦¡¦³«·spºâ®É¡A¤~·|¥h°õ¦æWorksheet_Calculate¸Ì±ªºµ{¦¡
¥L¤£¬O®É®É¨è¨è³£Àˬd¬O§_µ¥©ó TimeValue("18:25:00 ")¡AÀˬd®Éªº·í¤U®É¶¡¥i¯à¤w¸g¹L¤F¦n´X¬í¡A·íµM¤£·|¦¨¥ß¡C
3#¤@¶}ÀÉÁÙ¬O¨S¿ìªkIJµo¡An°õ¦æStart_Timer(),¤~·|IJµo
³oÓ§A¥i¥H¦b¤@¯ë¼Ò²Õ¤º©w¸q- Sub auto_open()
- Start_Timer
- End Sub
½Æ»s¥N½X ©ÎThisWorkbook¤º- Private Sub Workbook_Open()
- Start_Timer
- End Sub
½Æ»s¥N½X ³£¯àÅý¶}Àɮɦ۰ʰõ¦æStart_Timer
§Ú¬On¦b©T©wªº®É¶¡¥h°µ¬Y¨Æ,©Ò¥H"¥Ø«e®É¶¡¥[1¤ÀÄÁ" ¡A¤£¾A¦X§Ú¥Î
³o¤~¬O§A·Q¸Ñµªªº°ÝÃD
¦pªG¬On¶}±Ò¤u§@ªí«á¡A§Æ±æ¬YӮɨè¨ì¹F®É´N¥h°µ¬Y¥ó¨Æ
¨ä¹êµª®×´N¦b«e±¡A§A¥h¬d¬ÝApplication.OnTime»¡©úªº¸Ü..- Application.OnTime ¤èªk
- ¦w±Æ¤@Óµ{§Ç¦b±N¨Óªº¯S©w®É¶¡°õ¦æ (¬J¥i¬°¬YÓ¤é´Áªº«ü©w®É¶¡¡A¤]¥i¬°«ü©wªº®É¶¡¤§«á)¡C
- »yªk
- ¹Bºâ¦¡.OnTime(EarliestTime, Procedure, LatestTime, Schedule)
- ¹Bºâ¦¡ ¥Nªí Application ª«¥óªºÅܼơC
- °Ñ¼Æ
- ¦WºÙ ¥²n/¿ï¥Î ¸ê®ÆÃþ«¬ ´yz
- EarliestTime ¥²n Variant ·Qn°õ¦æµ{§Çªº®É¶¡¡C
- Procedure ¥²n String n°õ¦æªºµ{§Ç¦WºÙ¡C
- LatestTime ¿ï¥Î Variant ¥i¥H¶}©l°õ¦æµ{§Çªº³Ì±ß®É¶¡¡C¨Ò¦p¡A°²³] LatestTime ³]¬° EarliestTime + 30¡A·í®É¶¡¨ì¤F EarliestTime ®É¡A¦pªG¥Ñ©ó¨ä¥Lµ{§Ç¥¿¦b°õ¦æ¤¤¦Ó¨Ï Microsoft Excel ¤£³B©ó [´Nºü]¡B[½Æ»s]¡B[°Å¤U] ©Î[´M§ä] ¼Ò¦¡¡A«h Microsoft Excel ·|µ¥«Ý 30 ¬í¥H§¹¦¨²Ä¤@Óµ{§Ç¡C¦pªG 30 ¬í¤º Microsoft Excel µLªk¦^¨ì [´Nºü] ¼Ò¦¡¡A«h¤£·|°õ¦æ¦¹µ{§Ç¡C¦pªG¬Ù²¤¦¹¤Þ¼Æ¡AMicrosoft Excel ·|¤@ª½µ¥¨ì¥i¥H°õ¦æ¸Óµ{§Ç¬°¤î¡C
- Schedule ¿ï¥Î Variant Y¬° True¡A±Æµ{·sªº OnTime µ{§Ç¡CY¬° False¡A²M°£¥ý«e³]©wªºµ{§Ç¡C¹w³]Ȭ° True¡C
½Æ»s¥N½X ´N¥i¥Hª¾¹D³o¼Ë¼g´N¦n¤F- Sub auto_open()
- Application.OnTime TimeValue("18:25:00"), "Sonny" 'Sonny©w¸q¦p2¼Ó
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 760
- ¥DÃD
- 250
- ºëµØ
- 0
- ¿n¤À
- 1023
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 11
- ³nÅ骩¥»
- OFFICE2021
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-5-30
- ³Ì«áµn¿ý
- 2024-12-22
|
Sub Start_Timer()
Application.OnTime Now + TimeValue("00:01:00"), "Sonny"
End Sub
Sub Sonny ...
sunnyso µoªí©ó 2013-6-28 23:01
©êºp
´ú¸Õ¹L¤F, ¤@¶}ÀÉÁÙ¬O¨S¿ìªkIJµo¡An°õ¦æStart_Timer(),¤~·|IJµo
IJµo±ø¥ó=>¥Ø«e®É¶¡¥[1¤ÀÄÁ µ¥©ó°õ¦æStart_Timer«á¥[1¤ÀÄÁ
1. ¦bCalculate ¸ÌµLªk±Ò°ÊStart_Timer ???
2. §Ú¬On¦b©T©wªº®É¶¡¥h°µ¬Y¨Æ,©Ò¥H"¥Ø«e®É¶¡¥[1¤ÀÄÁ" ¡A¤£¾A¦X§Ú¥Î |
|
|
|
|
|
|
- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
Sub Start_Timer()
Application.OnTime Now + TimeValue("00:01:00"), "Sonny"
End Sub
Sub Sonny()
Range("A2").Value = 1
End Sub |
|
ss
|
|
|
|
|