- ©«¤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
|
¥»©«³Ì«á¥Ñ lpk187 ©ó 2016-8-24 19:52 ½s¿è
¦^´_ 13# Michelle-W
§A쥻¬O¥i¥H§Q¥Î"²Îp"ªº¥N½X¥h¹ê²{§Aªº°ÝÃDªº¡A§Ú¥u¦h¤F´X¦C¥N½X¦Ó¤w
°Ñ¦Ò¤U±¥N½X¡G- 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))
- 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
- 'Module1.Â^¨ú¤H¦W<<<³o¸Ì¥i¥H¤£¥Î°Õ¡I
- End Sub
½Æ»s¥N½X |
|