- ©«¤l
- 23
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 73
- ÂI¦W
- 289
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-4-21
- ³Ì«áµn¿ý
- 2024-11-18
|
¦U¦ì¤j¤j¦n¡A¤p§Ì³Ìªñ¦b½m²ß°T®§¤è¶ô¡A©w®É¶¡«á®ø¥¢¥\¯à
¦ý½Ð°Ý¦p¦ó³]©w®É¶¡¤º¨S¿ï¾Ü¡A¦Û°Ê¿ï¨úÃþ¦ü"¤¤¤î ...
lichang µoªí©ó 2015-7-26 00:15
¤£ºÞ¦³¨S¦³¿ï¨ú¡A°T®§¤è¶ô¥\¯à³£·|Ãö³¬¡A§A¥i¥H°w¹ï°T®§¤è¶ôªº¦^¶ÇȨӥ[¤W¹ïÀ³ªº³B²zµ{§Ç...
°Ñ¦Ò»¡©ú:
https://technet.microsoft.com/en-us/library/ee156593.aspx
½d¨Ò:- Option Explicit
- Sub Ex()
- 'Windows Script Host Object Model³]©w¤Þ¥Î¶µ¥Ø
- Dim myWsh As IWshRuntimeLibrary.WshShell
- Dim intClicked As Integer
- Dim intDefaultButton As Integer: intDefaultButton = vbDefaultButton1
-
- Set myWsh = CreateObject("Wscript.Shell")
- intClicked = myWsh.PopUp(Text:="WSH´ú¸Õ", _
- SecondsToWait:=2, Title:="WSHPopUp", Type:=vbAbortRetryIgnore + intDefaultButton)
-
- Debug.Print intClicked
-
- If -1 = intClicked Then ' ¦^¶ÇÈ (-1) = ³]©w®É¶¡¤º¨S¿ï¾Ü
- If vbDefaultButton1 = intDefaultButton Then
- intClicked = vbAbort
- ElseIf vbDefaultButton2 = intDefaultButton Then
- intClicked = vbRetry
- ElseIf vbDefaultButton3 = intDefaultButton Then
- intClicked = vbIgnore
- End If
- End If
-
- Select Case intClicked
- Case vbAbort
- '¥[¤W [¤¤¤î] ¹ïÀ³³B²zµ{§Ç
- Case vbRetry
- '¥[¤W [«¸Õ] ¹ïÀ³³B²zµ{§Ç
- Case vbIgnore
- ' ...
- Case Else
- ' ...
- End Select
-
- Set myWsh = Nothing 'ÄÀ©ñª«¥ó
- End Sub
½Æ»s¥N½X |
|