- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
|
¦^´_ 4# GBKEE
G¤j ,¤£¦n·N«ä!
§ÚÁÙ¤£À´°}¦C,©Ò¥H§ä¤£¥X¬°¦ó¿é¤J10 ·|ª½±µ°h¥X
²Ä10¦CµL¸ê®Æ¡A§P§OÀ³¸Ó¦b" ¶W¥X½d³ò"
§Ú§ä¤£¥X§ïþ¸Ì¥iÁ׶}µL¸ê®Æªº²Ä¤@µ§~~ú~~- Sub SpeEnginBox()
- Dim i, j, AA, Ar, E
- i = Application.CountA(Range("C:C"))
- If i = 1 Then
- MsgBox "½d³ò¤ºµL^¤å»y¥y", 16
- Exit Sub
- End If
- AA:
- j = InputBox("½Ð°Ý§An°á²Ä´X¥y?" & vbNewLine & "(®æ¦¡ 1 ,2 ,3...)", , "")
- Ar = Array(j) '±N J Âà¤J°}¦C
- If j = "" Then
- If MsgBox("±z¥¼¿é¤J¥ô¦ó¼Æ¦r¡A°±¤î¿é¤J !!! ", vbYesNo) = vbYes Then Exit Sub
- GoTo AA
- ElseIf InStr(j, ",") Then '¦³¿é¤J ®æ¦¡ 1,2,3...
- Ar = Split(j, ",") '±N J Âà¤J°}¦C
- For Each E In Ar '¨Ì§Ç³B¸Ì °}¦Cªº¤¸¯À
- If Val(E) < 1 Or Val(E) > i Then '1 ¨ì J ¤§¶¡
- MsgBox "¶W¥X½d³ò", 16
- GoTo AA
- End If
- Next
- ElseIf InStr(j, ",") = 0 And IsNumeric(j) Then '¬O¼Æ¦r¥B ¶W¥X¦³¸ê®Æ½d³ò---->³o¸Ì¦³i+1 ¼ÐÃD¦Cºâ¶i¥hªº¦Ò¶q
- If Val(j) <= 0 Or Val(j) > i Then
- MsgBox "¶W¥X½d³ò", 16
- GoTo AA
- End If
- ElseIf InStr(j, ",") = 0 And Not IsNumeric(j) Then '¤£¬O¼Æ¦r¥B '¥¼¿é¤J ®æ¦¡ 1,2,3...
- MsgBox "¿é¤J¿ù»~¡I", 16
- GoTo AA
- End If
- Set oSa = CreateObject("SAPI.SpVoice")
- For E = 0 To UBound(Ar) 'E¬° °}¦Cªº¼ÆÈ
- oSa.Volume = 100
- oSa.Rate = -1
- oSa.Speak Cells(Ar(E) + 1, 3)
- If E < UBound(Ar) Then If MsgBox("¡uContinue?¡v Next (" & Ar(E + 1) & " )", vbYesNo) <> vbYes Then Exit Sub
- Next
- End Sub
½Æ»s¥N½X |
|