- ©«¤l
- 193
- ¥DÃD
- 29
- ºëµØ
- 0
- ¿n¤À
- 222
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows7
- ³nÅ骩¥»
- OFFICE2013
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2015-9-18
- ³Ì«áµn¿ý
- 2023-4-29
|
¦^´_ 42# jeffrey628litw
·PÁ¤j¤j¤£Ã㨯³Òªº×§ï !!!
¤µ¤é«ùÄò´ú¸Õ¥\¯à¬O§_¦³BUG , µo²{ .. °²³]¦³¤HûÂ÷¾ , ¦ý¥ý«e¤w¸g¦³¦b¡y¥X¶Ô¸ê®Æ®w¡z¸ê®Æ®w¥X²{ªº¦W¦r
·|¥X²{¥H¤U¿ù»~
µM«á¦^¨ì¡y¦^³ø¶±¡z ¬Ý ·|¥X²{¸ê®Æ³£¦V¤U¦ì²¾ !!
¦pªG¥h¡y¥X¶Ô¸ê®Æ®w¡z±NÂ÷¾¤Hû§R±¼ªº¸Ü¤@¼Ë¤£·|«ì´_¥¿±`
°£«Dn¥ý±N¡y¦^³ø¶±¡zªº(¬õ®Ø)¸ê®Æ¥ý§R¥ú, ¦b¥h«ö¦^³ø«ö¶s, ¤~«ì´_¥¿±`
½Ð°Ý³oÓ¦p¦ó×¥¿©O?? ¥i¥H±NÂ÷¾«áªº¤Hû¸ê®Æ¦P¨B¦b¡y¥X¶Ô¸ê®Æ®w¡z§R±¼? ´N¯àÁקK³o°ÝÃD??
- Private Sub Main_¦^³ø¼g¤J(Rng As Range)
- Dim R As Range, St As String, xRng As Range, ¤é¼Æ As Integer, i As Integer
- For Each R In Rng.Rows
- ' ** R ->Sheets("¥X¶Ô¸ê®Æ®w")ªº¾ã¦C***********
-
- St = R.Cells(1, "A") & R.Cells(1, "B") & R.Cells(1, "D") & R.Cells(1, "E") & R.Cells(1, "F")
- 'St =¥X¶Ô¸ê®Æ: ¯Z§O&©ÒÄÝ»â¯Z&&¤u¸¹&©m¦W& ²Õ§O
-
- If ¤Hû¦^³ø.EXISTS(St) Then '** St(¥X¶Ô¸ê®Æ)¦s¦b¦r¨åª«¥ó¤¤ -> ¦P¤@¤u¸¹®É
- Set xRng = ¤Hû¦^³ø(St) '** -> ¦P¤@¯Z§O¤u¸¹¤Hûªº¦ì¸m
- Else '** St(¥X¶Ô¸ê®Æ)¤£¦s¦b¦r¨åª«¥ó
-
- Set xRng = Sheets("¤Hû¦^³ø").Range("a" & Rows.Count).End(xlUp).Offset(1)
- '** xRng ÅܼƳ]¬° Sheets("¤Hû¦^³ø"),AÄæ³Ì©³³¡ªº¦C©¹¤W¨ì¦³¸ê®Æ Àx¦s®æªº¤U¤@¦C
-
- Set ¤Hû¦^³ø(St) = xRng '** ¦r¨åª«¥ó,¤u¸¹: ³]¬°xRngÅܼÆ
- End If
- ¤é¼Æ = Day(R.Range("C1"))
- With xRng
- ' ** xRng ->Sheets("¤Hû¦^³ø").Range("a"¦C )***********
- .Range("A1") = R.Range("A1") '** ¯Z§O
- .Range("B1") = R.Range("B1") '** »â¯Z
- .Range("C1") = .Range("C1") + R.Range("k1") + IIf(R.Range("L1") = "True", R.Range("I1"), 0)
- '**R.Range("k1")->¥[¯Z®É¼Æ ,R.Range("L1") = "TRUE"->°²¤é:+¥[¥X¶Ô®É¼Æ-> R.Range("I1")
-
- .Range("D1") = R.Range("D1") '**¤u¸¹
- .Range("E1") = R.Range("E1") '** ©m¦W
- .Range("F1") = DA¤u¸¹(R.Range("D1") & "")(1, 7) '**¥D±Mªø
- .Range("G1") = R.Range("F1") '** ²Õ§O
- .Cells(1, ¤é¼Æ + 7) = R.Range("G1") '** ¥X¶Ô¯¸§O
- ''*********************************************
- i = Application.Match(UCase(.Range("G1")), Array("V", "P", "K"), 0) '**Âk¯Ç²Õ§O
- ²Õ§Oªí(i, ¤é¼Æ) = ²Õ§Oªí(i, ¤é¼Æ) + 1
-
- '***********************************
- If R.Range("J1") <> "" Then '**¥X¶Ô¸ê®Æ®w , ©µªø¥[¯Z ¸ê®Æ **
- i = Application.Match(UCase(R.Range("A1")), Ar1, 0)
- ¯¸§Oªí(i, ¤é¼Æ) = ¯¸§Oªí(i, ¤é¼Æ) + 1 '**Day(Rng(1)); ©µªø¥[¯Zªº¥[Á`
- End If
-
- i = Application.Match(UCase(R.Range("G1")), Ar1, 0) '**¥X¶Ô¸ê®Æ®w , ¥X¶Ô¯¸§O ¸ê®Æ**
- ¯¸§Oªí(i, ¤é¼Æ) = ¯¸§Oªí(i, ¤é¼Æ) + 1
- '**DA ¶}¾÷¼Æ **
- If i = UBound(Ar1) + 1 Then ¯¸§Oªí(UBound(Ar1) + 2, ¤é¼Æ) = ¯¸§Oªí(UBound(Ar1) + 2, ¤é¼Æ) + R.Range("H1")
- '*********************************************
- End With
- Next
- End Sub
½Æ»s¥N½X |
|