ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] EXCEL VBA ªº°ÝÃD

½Ð°Ýªülpk187¤j¤j
°õ¦æªºµ²ªG¦³ÂI¤£¤@¼Ë
¥t¥~loop¦n¹³¤Ó¦h¦¸

TOP

·PÁ¤j¤jªº¦^´_¡A§Ú¨Ó¬ã¨s¸Õ¸Õ¬Ý¡A¤£À´ªº¡A§Æ±æ±z¥i¥H±µ¨ü§Úªº½Ð¯q
ÁÂÁÂ

TOP

¦^´_ 1# idnoidno
  1. Sub ¥¨¶°1()
  2. n = 1
  3. For Each Rng In ¤u§@ªí1.Range("B1", ¤u§@ªí1.Cells(1, Columns.Count).End(xlToLeft).Address) '²Ä¤@¦C"°ÊºA"Ū¨ú°µ´`Àô
  4.     RngRow = ¤u§@ªí1.Columns(Rng.Column).Find("*", , , , , xlPrevious).Row '´M§ä§ïÄ檺³Ì«á¤@­ÓÀx¦s®æ
  5.     ¤u§@ªí2.Cells(n, 1) = Cells(RngRow, 1) '¤é´Á¼g¤J¤u§@ªí2
  6.     ¤u§@ªí2.Cells(n, 2) = Cells(RngRow, Rng.Column) '³Ì«áªº¼Æ­È¼g¤J¤u§@ªí2
  7.     n = n + 1
  8. Next
  9. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ª¾ÃÑ­n¥Î¤ßÅé·|¡A¤~¯àÅܦ¨¦Û¤vªº´¼¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD