- ©«¤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
|
¦^´_ 1# fusayloveme - Option Explicit
- Sub Ex()
- Dim Rng As Range, Ar(), i As Integer
- With Sheets("2013")
- Set Rng = .Range("A1:C1").Resize(.[A1].End(xlDown).Row) 'End(xlDown) '¶µ¥Ø¥i©µ¦ù
- Ar = .Range("D1").Resize(Rng.Rows.Count, .[D1].End(xlToRight).Column - 3).Value 'ºÊ´úÈ
- End With
- With Sheets("³B²z«á¸ê®Æ")
- .UsedRange.Clear
- .[A1:E1] = Array("¤é´Á", "´ú¶µ", "´ú¯¸", "®É¶¡", "´úÈ")
- For i = 2 To Rng.Rows.Count '±q2¦C¶}©l
- With .Cells(.Rows.Count, "A").End(xlUp)
- .Offset(1).Resize(UBound(Ar, 2)) = Rng.Cells(i, "A").Text '¤é´Á
- .Offset(1, 1).Resize(UBound(Ar, 2)) = Rng.Cells(i, "B") '´ú¶µ
- .Offset(1, 2).Resize(UBound(Ar, 2)) = Rng.Cells(i, "C") '´ú¯¸
- '°}¦C¾É¤JÀx¦s®æªºÈ¬°2ºû°}¦C,¤¸¯À¤U¯Á¤Þ±q1¶}©l.
- .Offset(1, 3).Resize(UBound(Ar, 2)) = Application.Transpose(Application.Index(Ar, 1)) '®É¶¡
- .Offset(1, 4).Resize(UBound(Ar, 2)) = Application.Transpose(Application.Index(Ar, 2)) '´úÈ
- End With
- Next
- With .UsedRange.Borders '®Ø½u
- .LineStyle = 1
- .Weight = xlThin
- End With
- End With
- End Sub
½Æ»s¥N½X |
|