- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 8# sandra_wang
¨C¤@µ{§Ç¬O¨Ì¾Ú,¨C¦UӮשҶq¨q»sªº .¤£¤@©w®M¥Îªº¤W.
½Ðn»¡©ú¤@¤U®t²§¬O¦bþ¸Ì, Àɮ׬O¦p¦¹Ãe¤j§Ú§ä±o²´ªá¤]¬Ý¤£¥X¨Ó¦p¦óÀ°§A.
²Ä¤@Ó°ÝÃD ¥t¦³¤@¸Ñ½Ð°Ñ¦Ò- Sub Ex()
- Dim Rng(1 To 2) As Range, i%, ii%, C%, T%, E
- With Sheet1
- .Range("M1", .Range("M1").End(xlToRight)).EntireColumn.Clear
- Set Rng(1) = .Range("L3", .Range("L3").End(xlDown))
- C = 1
- For i = 8 To 10
- T = 1 'Äæ¦ì¼Æ¶q->Âk¹s
- For Each E In .Range(.Cells(1, i), .Cells(Rows.Count, i).End(xlUp)).SpecialCells(xlCellTypeConstants).Cells
- If Val(E) > 0 Then
- For ii = 1 To Val(E)
- Set Rng(2) = Rng(1).Offset(, C)
- .Cells(1, Rng(2).Column) = Replace(.Cells(1, i), "¼Æ¶q", "_" & T)
- Rng(2).Value = Application.Transpose(.Cells(E.Row, "b").Resize(, 4))
- Rng(2).Interior.ColorIndex = E.Interior.ColorIndex
- C = C + 1 '©¹¥k¥[1Äæ Rng(1).Offset(, C)
- T = T + 1
- Next
- End If
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|