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

½Ð±Ð¥´¥d²Î­p°ÝÃD

¦^´_ 7# tony0318
ÁÙ¦³¯S¥ð·|Åܦ¨480480¡A §A¨S«Å§iÅܼƬ°¼Æ¦r®É   J , K ¶Ç¦^¤l¦ê+ ¤l¦ê¤~¦p¦¹
  1. Sub Ex()
  2.     Dim Ar(), a, i As Integer, k As Integer, j As Integer
  3.     With Sheets("sheet1")
  4.         Ar = Application.Transpose(.Range("g2", .Range("g2").End(xlDown)))
  5.         .[F34] = UBound(Filter(Ar, .[e34], True)) + 1
  6.         For Each a In Filter(Ar, .[e35], True)
  7.             i = i + Mid(a, InStr(a, "¨ì") + 1, InStr(a, "¤À") - InStr(a, "¨ì") - 1)
  8.         Next
  9.         .[f35] = i
  10.         For Each a In Filter(Ar, .[e37], True)
  11.             k = k + Mid(a, InStr(a, "¥ð") + 1, InStr(a, "¤À") - InStr(a, "¥ð") - 1)
  12.         Next
  13.         .[f37] = k / 60
  14.         For Each a In Filter(Ar, .[e36], True)
  15.             j = j + Mid(a, InStr(a, "°h") + 1, Len(a) - InStrRev(a, "¤À") + 1)
  16.         Next
  17.         .[f36] = j
  18.     End With
  19. End Sub
½Æ»s¥N½X

TOP

¯u¯«©_!
Hsieh ªºµ{¦¡Â²µu§ã­n  ¤p§Ì¸ûµLªk²z¸Ñ!
GBKEE  ªº Åý§Ú®e©öÀ³¥Î!!
À¸ªk¤H¤H·|ÅÜ ¤âªk¥©§®¦U¤£¦P!!
·PÁÂ

§Ú­n¦p¦óÅý©Ò¦³¤u§@ªí³£°õ¦æ³o¥¨¶°?
­ì¥H¬°¿ï¾Ü©Ò¦³¤u§@ªí¡A¦A°õ¦æ©Ò­n¥¨¶°§Y¥i!
§Ú·Qªk¤Ó³æ¯Â¤F!!

TOP

¦^´_ 12# tony0318
With Sheets("sheet1")    «ü¦W sheet1¤u§@ªí
With ActiveSheet            §@¥Î¤¤ªº¤u§@ªí

TOP

©êºp!
§Ú«üªº¬O¦p¦ó¤@¦¸°w¹ïÀɮפ¤©Ò¦³¤u§@ªí³£°õ¦æ¬Û¦Pªº¥¨¶°¡A
­ì¥»·Q»¡¿ï¾Ü©Ò¦³¤u§@ªí«á¦A°õ¦æ¥¨¶°¡A
¦ý¥u¦³²Ä¤@­Ó¤u§@ªí¦³¤ÏÀ³¡A
Åܦ¨¨C¤@­Ó­û¤u§Ú³£­n°õ¦æ¤@¦¸!

ÁÂÁÂ

TOP

¦^´_ 14# tony0318
¬O³o¼Ë¶Ü?
  1. Sub Ex()
  2.     Dim Ar(), a, i As Integer, k As Integer, j As Integer
  3.     Dim Sh As Worksheet
  4.     For Each Sh In Sheets   '¤u§@ªíª«¥óªº¶°¦X Sheets
  5.         With Sh         'Sheets("sheet1")
  6.             Ar = Application.Transpose(.Range("g2", .Range("g2").End(xlDown)))
  7.             .[F34] = UBound(Filter(Ar, .[e34], True)) + 1
  8.             For Each a In Filter(Ar, .[e35], True)
  9.                 i = i + Mid(a, InStr(a, "¨ì") + 1, InStr(a, "¤À") - InStr(a, "¨ì") - 1)
  10.             Next
  11.             .[f35] = i
  12.             For Each a In Filter(Ar, .[e37], True)
  13.                 k = k + Mid(a, InStr(a, "¥ð") + 1, InStr(a, "¤À") - InStr(a, "¥ð") - 1)
  14.             Next
  15.             .[f37] = k / 60
  16.             For Each a In Filter(Ar, .[e36], True)
  17.                 j = j + Mid(a, InStr(a, "°h") + 1, Len(a) - InStrRev(a, "¤À") + 1)
  18.             Next
  19.             .[f36] = j
  20.         End With
  21.     Next
  22.     Set Sh = Nothing
  23. End Sub
½Æ»s¥N½X

TOP

¤£¦n·N«ä!
³o¼Ë°õ¦æ¤§«á¡A·|²Ö­p­C!
À³¸Ó¬O³æ¤@¤u§@ªí¦U§O­pºâ
¦p¦³5­Ó¤H¥´¥d·|¦³5±i¤u§@ªí¡A¦ý¬O¬O¦U§O­pºâªº!

ÁÂÁÂ!

´ú¸Õ.rar (12 KB)

TOP

¦^´_ 16# tony0318
¨S¦³Âk¹s  i = 0: k = 0: j = 0
  1. Sub Ex()
  2.     Dim Ar(), a, i As Integer, k As Integer, j As Integer
  3.     Dim Sh As Worksheet
  4.     For Each Sh In Sheets   '¤u§@ªíª«¥óªº¶°¦X Sheets
  5.         i = 0: k = 0: j = 0
  6.         With Sh         'Sheets("sheet1")
  7.             Ar = Application.Transpose(.Range("g2", .Range("g2").End(xlDown)))
  8.             .[F34] = UBound(Filter(Ar, .[e34], True)) + 1
  9.             For Each a In Filter(Ar, .[e35], True)
  10.                 i = i + Mid(a, InStr(a, "¨ì") + 1, InStr(a, "¤À") - InStr(a, "¨ì") - 1)
  11.             Next
  12.             .[f35] = i
  13.             For Each a In Filter(Ar, .[e37], True)
  14.                 k = k + Mid(a, InStr(a, "¥ð") + 1, InStr(a, "¤À") - InStr(a, "¥ð") - 1)
  15.             Next
  16.             .[f37] = k / 60
  17.             For Each a In Filter(Ar, .[e36], True)
  18.                 j = j + Mid(a, InStr(a, "°h") + 1, Len(a) - InStrRev(a, "¤À") + 1)
  19.             Next
  20.             .[f36] = j
  21.         End With
  22.     Next
  23.     Set Sh = Nothing
  24. End Sub
½Æ»s¥N½X

TOP

·PÁ GBKEE  ªºÀ°¦£!!
³o¥¿¬O§Ú­nªº!!
ÁÂÁ¡C

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD