- ©«¤l
- 32
- ¥DÃD
- 14
- ºëµØ
- 0
- ¿n¤À
- 54
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- office 2003 & 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-11-5
- ³Ì«áµn¿ý
- 2020-7-16
|
[µo°Ý] Excel¶}ÀÉÅv ,¦p¦ó±±¨î¿é¤J±Kº¿»Ý¦b«ü©w®É¶¡¤º¿é¤J§¹¦¨
Dear ¦U¦ì¤j¤j¥ý¶i±z¦n ,
¤u§@¤¤«æ»Ýn¨ó§U ,
Excel ¶}ÀÉ®É VBA¦³³]Åv±K½X , ¦pn¤U¦C»Ý¨Dµ{¦¡¸Ó¦p¦ó¼g ? ÁÂÁÂ
°²³]¥ÍºÞºûÅ@®É¶¡ 07:30-08:30 »Ý³]±±ºÞ ,²{³õ¤Hû¤£¥i¨Ï¥ÎEXCELÀÉ®× .
ª¬ªp :
1.°²³]²{³õ¤Hû¦b07:30¤§«e¤w¥ý¶}ÀÉ ,¦p®É¶¡¤w¨ì 07:30 ,«h·|°±¦b¿é¤J±K½Xµe± ,Àɮשó1 min«á¦Û°ÊÃö³¬
2.°²³]²{³õ¤Hû¦b07:30-08:30 ¤§¶¡¤w¶}ÀÉ ,«h·|°±¦b¿é¤J±K½Xµe± ,Àɮשó1 min«á¦Û°ÊÃö³¬
Private Sub Workbook_Open()
If Time > TimeValue("07:30") And Time < TimeValue("08:30") Then
Application.EnableCancelKey = xlDisabled
MsgBox "¨C¤é 07:30-08:30 ¬O¥ÍºÞºûÅ@¸ê®Æ®É¶¡ ,«D¥ÍºÞ¤Hû¸T¤î¨Ï¥ÎÀÉ®×[«öEscÃö³¬ÀÉ®×]"
If InputBox("¥ÍºÞ¤Hû½Ð¿é¤JÅv±K½X :") <> "111111" Then
MsgBox "¿é¤J±K½X¿ù»~ ,ÀÉ®×µL¨Ï¥ÎÅv !"
Application.Quit
End If
End If
End Sub
Excel½d¨ÒÀÉ, ¶}ÀÉÅv.rar (14.18 KB)
|
|