- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-28
|
¦^´_ 6# §Ú¬OÞ±
®Ú¾Ú1#±Ôz¼g¤Jªº¥Ø¼Ð¤u§@ªí¬O¤u§@ªíA¡A¦ýµ{¦¡½X«o¬O¼g¤J¨ì¤u§@ªíC
¥H¤Uµ{¦¡½X¬O¨Ì¾Ú1#±Ôz¤£¹ï¤u§@ªíB¶i¦æ¿z¿ï°Ê§@¡A
ª½±µ±NPÄæªÅ®æ¼g¤J¤u§@ªíA¡A(¼g¤J¥Ø¼Ð¦ì¸m¥i¦Û¦æ°Ñ¦Ò§ó§ï)- Sub Input_Data()
- Dim Rng As Range
- With Sheets("B") '¤u§@ªíB(¸ê®Æ°Ï)
- r = .[Q65536].End(xlUp).Row
- If Application.CountBlank(.Range("P2:P" & r)) > 0 Then 'PÄæªÅ®æ¼Æ¶q¤j©ó0
- Set Rng = .Range("P2:P" & r).SpecialCells(xlCellTypeBlanks) '§ä¨ìPÄæªÅ®æ
- ad = Split(Replace(Rng.Address(0, 0), "P", ""), ",") '¨ú±oªÅ®æªº¦C¦ì
- ar = Array(3, 1, 2, 4, 5, 6, 7, 8, 17) '¼g¤JªºÄæ¦ì¶¶§Ç
- ReDim ay(UBound(ad) + 1, UBound(ar) + 1)
- For j = 0 To UBound(ad)
- For i = 0 To 8
- ay(j, i) = .Cells(ad(j), ar(i)).Value '±N¸ê®Æ¼È¦s°}¦C¤¤
- Next
- Next
- End If
- End With
- With Sheets("A") '¼g¤Jªº¤u§@ªí
- With .[A3].Resize(j, i)
- .Value = ay '±N°}¦C¼g¤J¥Ø¼Ð°Ï
- .Sort key1:=.Cells(1, 1) 'AÄæ±Æ§Ç
- End With
- End With
- End Sub
½Æ»s¥N½X |
|