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

[µo°Ý] ¸óÄæ¸m¤¤»PÂ^¨ú¤å¦r°ÝÃD

¦^´_ 12# v03586


    Sorry....µ{¦¡Àɮפ¤TBG1®ÇÃä¡]¥k¡^»sµ{Äæ¦ì¦h¥[¤@­Ó»sµ{Äæ¦ìPGH1
§Ñ°O¥[¤W¥h.....thanks

TOP

¦^´_ 11# v03586


    ¸É¥R....
STEP ¸Ì­± ¥u­n¦³WGD1  /   WGH1   /   WGP1 / WGS1  / WG01
³£¦C¤JWGÄæ¦ì¸Ì­±..!!!  WGxx³£ÄÝ©óWG»sµ{Äæ¦ì

TOP

¦^´_ 9# ­ã´£³¡ªL


    ¦^´_ 9# ­ã´£³¡ªL


Q1.·PÁ¤j¤j!! §Ú°w¹ïµ{¦¡½X­×§ï¦Ü§Ú¦Û¤vªºµ{¦¡³øªí(FMC), µo²{Äæ¦ìSubstrate »P B/D Np Äæ¦ì ´N¬O¨ú ¡y-¡z ¦n¹³¤Á±o¤£¬O«Ü°®²b (W»PXÄæ¦ì)
ÁÙ¦³³Ì«á¤@Äæ¤@ªø¦ê¨º­Ó, §Ú­×§ï¤£¥X¨Ó...¨D«ü±Ð....

Q2.ÁÙ¦³¥i¥H±N¶×¤J³øªí¼Ò¦¡§ï¦¨ Excel ¥´¶}«á¤ñ¹ï (°Ñ¦Ò³øªí¸ê®Æ¨Ó·½:ONHAND2HR_Ist_Flow)
          A2Äæ¦ì¦³ ON HAND--PC_ONHAND2HR_1ST_FLOW ´Nµ¥¦P¶×¤J³øªí¶Ü?  
      ·N«ä´N¬O¥u­n¥´¶}µ{¦¡EXCEL »P °Ñ¦Ò¸ê®Æ¨Ó·½ ¤ñ¹ï¸ê®ÆªíSheet1 A2Ä榳ON HAND--PC_ONHAND2HR_1ST_FLOW ¦r²´

½Ð°Ý¤j¤j¯à§_·s¼W´X¼Ë¥\¯à¶Ü
1. ¥\¯à1
    1-1. ¦pªG°õ¦æ®É¶¡¤ñ¹ï°Ñ¦Ò¸ê®Æ¨Ó·½Date Time (LÄæ)¶W¹L24H ¯àÀ°§Ú¤Ï¶À¦â¼Ð¥Ü¶Ü?
2. ¥\¯à2
   2-1. µ{¦¡¤¤³øªí¤WCUSTNAME Äæ¦ì¤¤¦pªG¦³ CSP / L1 / L2 / ¦r¦ê«h¾ã­Ó§R°£
   2-2. «O¯d ENG / HQCSP / HQ-CSP / HQ-L1 / HQ-L2 / HQL1 / HQL2
   2-3. µM«á²¾¥hENG ²¾¦ÜENG¸ê®Æªí, HQ CSP¨t¦C²¾¦ÜCSP¸ê®Æªí, HQ L1 / HQ L2 ¨t¦C²¾¦ÜOther¸ê®Æªí
3. ¥\¯à3
    3-1. ³øªí°Ñ¦Ò¸ê®Æ¤¤ªºQÄæ¦ìQTY ,¯à¤ñ¹ï PÄæ¦ì STEP ±a¤J
            µ{¦¡¤¤ªº¬Û¹ïÄæ¦ì¶Ü?   (¦p°õ¦æµ²ªGEXCEL)
4. ¥\¯à4
   4-1. µ{¦¡¤¤,¸ê®ÆªíFMC,«e­±¦³¬Ý¨£AÄæ¦ì»PBÄæ¦ì ¤w¦³¦X¨ÖÀx¦s®æ, µo²{«á­±¦³«Ü¦h¬Û¦P­«½Æªº ¤]¥i¥H¦X¨Ö¶Ü?
     4-1-1. SÄæ¦ì(Custname)   TÄæ¦ì(Device)  UÄæ¦ì(Datetime) ¢äÄæ¦ì(MO QTY)  WÄæ¦ìSubstrate  XÄæ¦ì(B/D No)  YÄæ¦ì(Flow)

Àɮפº»¡©ú
[2F·s³øªíµ{¦¡_v1] ¤W­z¬°µ{¦¡   [ONHAND2HR_Ist_Flow] ¤W­z¬°°Ñ¦Ò¸ê®Æ¨Ó·½
Report.rar (434.41 KB)

TOP

¦^´_ 9# ­ã´£³¡ªL


    Excel ¥´¶}¤ñ¹ïA2Äæ¦ì¦³ ON HAND--PC_ONHAND2HR_1ST_FLOW
´Nµ¥¦P¶×¤J³øªí¶Ü

TOP

¥Î³Ì°ò¥»ªºµ{¦¡»yªk, ¦Û¦æ¥h¬ã¨s, ¤£¦A¦h»¡©ú~~
  1. Sub TEST()
  2. Dim R&, xArea As Range, xR As Range, xH As Range, T, TT, X
  3. R = [³øªí!A65536].End(xlUp).Row: If R < 9 Then Exit Sub
  4. Set xArea = Sheets("³øªí").Range("A9:A" & R)
  5. For Each xR In xArea
  6. ¡@¡@T = xR(1, 3): xR(1, 3) = Mid(T, InStr(T, "-") + 1)
  7. ¡@¡@xR(1, 4) = Right(xR(1, 4), 9)
  8.      ¡@
  9. ¡@¡@T = xR(1, 5):  T = Left(T, 2) & "-" & Mid(T, 3, 1) & "-" & Mid(T, 4, 4)
  10. ¡@¡@TT = Application.VLookup(T, [Flow!A:B], 2, 0)
  11. ¡@¡@If Not IsError(TT) Then xR(1, 5) = TT Else xR(1, 5).Font.Color = vbRed
  12.      ¡@
  13. ¡@¡@T = xR(1, 6)
  14. ¡@¡@T = Mid(T & ",QVS", InStr(T, "QVS") + 4) '¨ú QVS ¥H«á¦r¦ê
  15. ¡@¡@For Each TT In Array("SPC", "SCL")
  16. ¡@¡@¡@¡@X = InStr(T, TT): If X > 0 Then xR(1, 6) = Left(T, X + 2): Exit For
  17. ¡@¡@Next
  18. Next
  19. ¡@
  20. xArea.Resize(, 6).Sort Key1:=xArea(1, 1), Order1:=xlAscending, _
  21.                        Key2:=xArea(1, 4), Order2:=xlAscending, Header:=xlNo
  22.                       ¡@
  23. Application.DisplayAlerts = False
  24. For Each xR In xArea
  25. ¡@¡@If xR & xR(1, 2) <> xR(0) & xR(0, 2) Then Set xH = xR
  26. ¡@¡@If xR & xR(1, 2) <> xR(2) & xR(2, 2) Then
  27. ¡@¡@¡@Range(xH, xR).Merge: Range(xH(1, 2), xR(1, 2)).Merge
  28. ¡@¡@¡@Range(xH, xR(1, 6)).Borders.LineStyle = 1
  29. ¡@¡@¡@For i = 7 To 10
  30. ¡@¡@¡@¡@¡@Range(xH, xR(1, 6)).Borders(i).Weight = xlMedium
  31. ¡@¡@¡@Next i
  32. ¡@¡@End If
  33. Next
  34. End Sub
½Æ»s¥N½X

TOP

¦^´_ 7# v03586
  1. oRegexp : regular expression ¥¿«hªí¹F¦¡/¥¿³Wªí¥Üªk¡A¥Î¨Ó¬d§ä¡B´À´«¡B´£¨ú¡BÅçÃÒ¦r¦ê¡A
  2. ¡A¥i°Ñ¦Ò http://club.excelhome.net/thread-1128647-1-2.html ¾Ç²ß

  3. .Pattern = "^[^-]*-" ¥Î¨Ó³]©w³W«h
  4. ^ : ¦r¦ê¶}ÀY¦ì¸m
  5. [^-] : «D-ªº¥ô·N¦r¤¸
  6. [^-]* : 0~n­Ó«D-ªº¥ô·N¦r¤¸
  7. - : -¦r¤¸
  8. ©Ò¥H¬O¤Ç°t¶}ÀY¨ì²Ä¤@­Ó-¦r¤¸

  9. .Test ¬O¥Î¨Ó´ú¸Õ¬O§_²Å¦X³W«h
  10. .Replace ¬O§â²Å¦X³W«h³¡¤Àªº¦r¦ê¨ú¥N±¼
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 6# stillfish00


    ·PÁ¤j¤jªºÀ°¦£!!!
¦ý§Ú³¡¤À¬Ý¤£¤Ó²M·¡ , ¥i§_³Â·Ð¤j¤j°w¹ï´X¶µ¥\¯à¨ó§U°µ­Ó»¡©ú

EX :
  1.    With oRegexp
  2.         .Pattern = "^[^-]*-"
  3.         For i = 1 To UBound(ar)
  4.             If .Test(ar(i, 3)) Then ar(i, 3) = .Replace(ar(i, 3), "")
  5.         Next
  6.         .Pattern = "^[^-]*-[^-]*-"
½Æ»s¥N½X
³o¤@¬q¬O§PÂ_¤°»ò¥\¯à?
  1.         For i = 1 To UBound(ar)
  2.             If .Test(ar(i, 4)) Then ar(i, 4) = .Replace(ar(i, 4), "")
  3.         Next
  4.         .Pattern = "^(.{2})(.)(.*)[a-zA-Z]$"
½Æ»s¥N½X
³o¤@¬q¬O§PÂ_¤°»ò¥\¯à
§Ú¤£ª¾¹D³o¼Ë¤Á ¦³¨S¦³¤Á¿ù¬q¸¨

TOP

¦^´_ 4# v03586
Try this
4.¨Ì·ÓDÄæ¬Û¦Pªº¦r¦ê¥Î¶Â®Ø½u  => §ï¬°¨Ì¦X¨ÖªºAÄæµe²Ê®Ø
  1. Sub Test()
  2.     Dim oRegexp As Object: Set oRegexp = CreateObject("vbscript.regexp")
  3.     Dim ar, i, j, s
  4.    
  5.     ar = Sheets("³øªí").Range("A9:F21").Value  'or .Range("A9").CurrentRegion.Value
  6.    
  7.     With oRegexp
  8.         .Pattern = "^[^-]*-"
  9.         For i = 1 To UBound(ar)
  10.             If .Test(ar(i, 3)) Then ar(i, 3) = .Replace(ar(i, 3), "")
  11.         Next
  12.         .Pattern = "^[^-]*-[^-]*-"
  13.         For i = 1 To UBound(ar)
  14.             If .Test(ar(i, 4)) Then ar(i, 4) = .Replace(ar(i, 4), "")
  15.         Next
  16.         .Pattern = "^(.{2})(.)(.*)[a-zA-Z]$"
  17.         For i = 1 To UBound(ar)
  18.             If .Test(ar(i, 5)) Then
  19.                 s = .Replace(ar(i, 5), "$1-$2-$3")
  20.                 mch = Application.VLookup(s, Sheets("Flow").[A:B], 2, False)
  21.                 If Not IsError(mch) Then ar(i, 5) = mch
  22.             End If
  23.         Next
  24.         .Pattern = "(SPC|SCL).*$"
  25.         '¥t¤@ºØ QVS to SPC/SCL
  26.         '.Pattern = "^.*?(QVS.*?(SPC|SCL)).*$"
  27.         For i = 1 To UBound(ar)
  28.             If .Test(ar(i, 6)) Then ar(i, 6) = .Replace(ar(i, 6), "$1")
  29.         Next
  30.         
  31.     End With
  32.    
  33.     Application.ScreenUpdating = False
  34.     With Sheets.Add.[A1].Resize(UBound(ar), UBound(ar, 2))
  35.         .Value = ar
  36.         .Sort key1:=.Cells(1, 1), order1:=xlAscending, key2:=.Cells(1, 4), order2:=xlAscending
  37.         .Borders.LineStyle = xlContinuous
  38.         .Borders.Weight = xlThin
  39.         Application.DisplayAlerts = False
  40.         i = 1
  41.         For j = 1 To UBound(ar)
  42.             If .Cells(j, 2).Value <> .Cells(j + 1, 2).Value Then
  43.                 If i <> j Then Range(.Cells(i, 1), .Cells(j, 1)).Merge
  44.                 With .Cells(i, 1).MergeArea.Resize(, .Columns.Count)
  45.                     .Borders(xlEdgeTop).Weight = xlMedium
  46.                     .Borders(xlEdgeBottom).Weight = xlMedium
  47.                     .Borders(xlEdgeLeft).Weight = xlMedium
  48.                     .Borders(xlEdgeRight).Weight = xlMedium
  49.                 End With
  50.                 i = j + 1
  51.             End If
  52.         Next
  53.         Application.DisplayAlerts = True
  54.         
  55.         [B:B].Font.Size = 16
  56.         [C:D].Font.Size = 12
  57.         ActiveWindow.Zoom = 63
  58.         [A:F].EntireColumn.AutoFit
  59.         [A:B].HorizontalAlignment = xlCenter
  60.     End With
  61.     Application.ScreenUpdating = True
  62. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 3# hcm19522


    ¤j¤jªGµM¬O¨ç¼Æ¹F¤H!!!!  ¦]³B²z¸ê®Æ¤W¤dµ§, ©Ò¥H¥²¶·¼g¤J°j°é
§Úı±o¤j¤j³o­Ó¤èªk¤]«Ü¦n!!!­È±o°Ñ¦Ò

TOP

Sorry , ¸ÉÀÉ®×
test.rar (87.5 KB)

TOP

        ÀR«ä¦Û¦b : §Ú­Ì­n°µ¦nªÀ·|ªºÀô«O¡A¤]­n°µ¦n¤º¤ßªºÀô«O¡C
ªð¦^¦Cªí ¤W¤@¥DÃD