- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 19# Michelle-W
§Úªº²z¸Ñ¬O³Ì«á°µ±Æ§Çªº°Ê§@¡A¬O³o¼Ë¶Ü¡HÁÙ¬On¦A°µ¥t¤@Óµ{§Ç¡H- Sub ²Îp()
- co = Sheets("²Îp").Rows(1).SpecialCells(xlCellTypeConstants)
- With Sheets("²Îp")
- For Each Rng In .Rows(1).SpecialCells(xlCellTypeConstants)
- ro = .Cells(.Rows.Count, Rng.Column).End(xlUp).Row
- If ro > 2 Then .Range(.Cells(3, Rng.Column), .Cells(ro, Rng.Offset(, 2).Column)).Clear
- ro = 0
- Next
- End With
- co = Cells(1, Columns.Count).End(xlToLeft).Column
- ro = Cells(Rows.Count, 1).End(xlUp).Row
- For Each Rng In Range("C2", Cells(ro, co)).SpecialCells(xlCellTypeConstants)
- If Rng.Value Like "¡´" Then
- With Sheets("²Îp")
- Set c = .Rows(1).Find(Cells(1, Rng.Column))
- If Not c Is Nothing Then
- ro = .Cells(Rows.Count, c.Column).End(xlUp).Row + 1
- .Cells(ro, c.Column) = Cells(Rng.Row, 1)
- .Cells(ro, c.Offset(, 1).Column) = Cells(Rng.Row, 2)
- '''.Â^¨ú¤H¦W
- T = Split(Cells(Rng.Row, 1) & "//", "//")(1)
- T = Split(T & "/", "/")(0)
- If T <> "" Then .Cells(ro, c.Offset(, 2).Column) = T
- ''''¼g¤J·s¼W
- Set cr = Sheets("·s¼W").Columns(1).Find(Cells(Rng.Row, 1)) '¬d¸ß¦bþ¤@¦C
- If Not cr Is Nothing Then
- Set cc = Sheets("·s¼W").Rows(1).Find(c.Value) '¬d¸ß¦bþ¤@Äæ
- If Not cc Is Nothing Then
- Sheets("·s¼W").Cells(cr.Row, cc.Column) = Rng.Value 'µM«á©ñ¤J"¡´"
- End If
- End If
- End If
- Set c = Nothing
- Set sr = Nothing
- Set cc = Nothing
- End With
- End If
- Next
- ''''±Æ§Ç
- Set Rng = Sheets("·s¼W").Range("a1").CurrentRegion
- For i = Rng.Columns.Count To 3 Step -1
- Rng.Sort Key1:=Rng(1, i), Order1:=xlAscending, Header:=xlYes
- Next
- 'Module1.Â^¨ú¤H¦W<<<³o¸Ì¥i¥H¤£¥Î°Õ¡I
- End Sub
½Æ»s¥N½X |
|