ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] §Ö³t¤Á´«¨ì¬YSheet­¶­±

¦^´_ 5# yianhung


    ³o¼Ë¤lÀ³¸Ó¬O¥i¥H¤F
  1. Sub test()
  2. Dim MyBook As Workbook, sh As Worksheet
  3. Set MyBook = ThisWorkbook
  4. Ans = Application.InputBox("½Ð¿é¤J¤u§@ªí¦WºÙ", "§Ö³t¤Á´«", "")
  5. For Each sh In MyBook.Sheets
  6.    If sh.Name Like "*" & Ans & "*" Then
  7.     sh.Select
  8.        Ans2 = MsgBox("³o¬O§A­nªº¤u§@ªí¶Ü¡H", vbYesNo)
  9.        If Ans2 = 6 Then Exit Sub
  10.    End If
  11. Next
  12. End Sub
½Æ»s¥N½X

TOP

·Q±o¤ñ¸û²³æ¡A¨Ï¥ÎCtrl+F¡A¦b¶i¶¥_·j´M½d³ò¿ï¾Ü¬¡­¶Ã¯¡A¦b¨C¤@­Ó¤u§@ªí¬Y¤@­Ó¦ì¸m¼Ðµù¯Á¤Þ¡A¤]¥i¥H¹F¨ì»Ý¨D

TOP

        ÀR«ä¦Û¦b : «Ý¤H°h¤@¨B¡A·R¤H¼e¤@¤o¡A´N·|¬¡±o«Ü§Ö¼Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD