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

[µo°Ý] Äæ¦ì¤º®e¥]§tABC¤å¦r§PÂ_

¦^´_ 1# jackyliu
  1. Sub test()
  2.     For uu = 3 To ¤u§@ªí1.Range("a3").CurrentRegion.Rows.Count
  3.         ¤u§@ªí2.Cells(uu, 1) = ¤u§@ªí1.Cells(uu, 1)
  4.         ¤u§@ªí2.Cells(uu, 2) = ¤u§@ªí1.Cells(uu, 2)
  5.         
  6.          If (InStr(1, ¤u§@ªí2.Cells(uu, 1), "ABC") >= 1) Then
  7.             ¤u§@ªí2.Cells(uu, 4) = "¤Wñ"
  8.          End If
  9.         
  10.          If (InStr(1, ¤u§@ªí2.Cells(uu, 1), "A") >= 1) And (InStr(1, ¤u§@ªí2.Cells(uu, 1), "D") >= 1) And (InStr(1, ¤u§@ªí2.Cells(uu, 1), "E") >= 1) And (InStr(1, ¤u§@ªí2.Cells(uu, 1), "D") >= 1) Then
  11.             ¤u§@ªí2.Cells(uu, 4) = "¤Uñ"
  12.          End If
  13.          If ¤u§@ªí2.Cells(uu, 1) <> "" And ¤u§@ªí2.Cells(uu, 4) = "" Then
  14.             ¤u§@ªí2.Cells(uu, 4) = "²¤"
  15.          End If
  16.          
  17.         If ¤u§@ªí2.Cells(uu, 1) <> "" Then
  18.             If uu = 3 Then
  19.                 ¤u§@ªí2.Cells(uu, 3) = DateAdd("n", 90, ¤u§@ªí2.Cells(uu - 1, 3))
  20.                 ¤u§@ªí2.Cells(uu, 3).Select
  21.                 Selection.NumberFormatLocal = "hh:mm"
  22.             End If
  23.             If uu > 3 Then
  24.                 ¤u§@ªí2.Cells(uu, 3) = DateAdd("h", 8, ¤u§@ªí2.Cells(uu - 1, 3))
  25.                 §@ªí2.Cells(uu, 3).Select
  26.                 Selection.NumberFormatLocal = "hh:mm"
  27.             End If
  28.         End If
  29.             If ¤u§@ªí2.Cells(uu, 1) = "" Then End
  30.     Next
  31.    
  32.    
  33.     ¤u§@ªí2.Cells(2, 4) = ""
  34. End Sub
½Æ»s¥N½X

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

        ÀR«ä¦Û¦b : ¤£­n¤p¬Ý¦Û¤v¡A¦]¬°¤H¦³µL­­ªº¥i¯à¡C
ªð¦^¦Cªí ¤W¤@¥DÃD