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

[µo°Ý] +¹ÎÁʪí®æ§ï¦¨¥X³fªí®æ(¦CÅã¥Ü§ï¦¨ÄæÅã¥Ü)

[µo°Ý] +¹ÎÁʪí®æ§ï¦¨¥X³fªí®æ(¦CÅã¥Ü§ï¦¨ÄæÅã¥Ü)

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-6-2 13:56 ½s¿è

¥Ñ©ó¤p©f¤½¥q±`±`¦b·d¹ÎÁÊ(§çµo¤u§@À£¤O?)
±`±`¦P¨Æ­Ì¬°¤F¤À³f¶Ë³z¸£µ¬¡A¤]±`±`¤À¿ù³f¡C
¤p©f¨ì³B¥h¬d¬ÛÃöªºVBA¡A´N¬O§ä¤£¨ì¦X¥Îªº¡A¥u¦n¤W¨Ó¸ò¦U¦ì°ª¤â¨D±Ï¡C
´N¬O­ì¥»¦bgoogle¤å¥ó¤¤ªºªí³æ¥\¯à¡A¤j®a¶ñ¦n¤§«á¡A·Q­nÂà´«¦¨¥X³fªº¸ê®Æ(³o¼Ëªº¸ê®Æ¥¼¨Ó¤]¤ñ¸û¦n°µ¦¨¦X¨Ö¦C¦L¸ê®Æ)¡C
¤§«e¦³¥h§ä±MªùÀ°¤H¼gVBAªº¤½¥q©Î­Ó¤H¤u§@«Ç ³£»¡³oºØ¤pªF¦è¤£°µ..­n§Ú¥hºô¸ô§ä´N¥i¥H¤F ¥i¬O§Ú§ä«Ü¤[³£§ä¤£¨ì><

ÁÂÁ¦U¦ì°ª¤âªºÀ°¦£¡C
·P¿E¤£ºÉ¡C ¥X³f¸ê®ÆÂà´«.rar (8.46 KB)

¦^´_ 1# smilelss
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Rng As Range, AR(), Ay(), a As Integer, b As Integer, c As Integer
  4.     Set Rng = Sheets("­ì©l¸ê®Æ").Range("A1").CurrentRegion
  5.     With Rng
  6.         AR = .Rows("2:" & .Rows.Count).Value
  7.     End With
  8.     ReDim Ay(1 To UBound(AR), 1 To UBound(AR, 2))
  9.     For a = 1 To UBound(AR)
  10.         Ay(a, 1) = AR(a, 1)
  11.         c = 1
  12.         For b = 2 To UBound(AR, 2)
  13.             If AR(a, b) <> "" Then
  14.                 c = c + 1
  15.                 Ay(a, c) = Rng(b) & "*" & AR(a, b)
  16.             End If
  17.         Next
  18.     Next
  19.     With Sheets("µ²ªG¸ê®Æ")
  20.         .Cells.Clear
  21.         .[a1].Resize(UBound(AR), UBound(AR, 2)) = Ay
  22.     End With
  23. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD