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

¨Ì¹ï¸Ü®Ø­n¨D¼g¤J¸ê®Æ

  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2. Dim ar()
  3. If Target.Address <> "$L$2" Then Exit Sub
  4. x = InputBox("¿é¤J¼Æ¦r", , [AA1])
  5. y = InputBox("¿é¤J¦¸¼Æ", , 3)
  6. Do Until x = "" Or y = ""
  7. For i = 1 To y
  8.   ReDim Preserve ar(s)
  9.   ar(s) = x
  10.   s = s + 1
  11. Next
  12. x = InputBox("¿é¤J¼Æ¦r", , 123)
  13. y = InputBox("¿é¤J¦¸¼Æ", , 3)
  14. Loop
  15. Range([L3], Cells(Rows.Count, 12).End(xlUp)) = ""
  16. If s > 0 Then [L3].Resize(s, 1) = Application.Transpose(ar)
  17. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 7# myleoyes
  1. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  2. Dim ar()
  3. If Target.Address <> "$L$2" Then Exit Sub
  4. x = InputBox("¿é¤J¼Æ¦r", , [AA1])
  5. y = InputBox("¿é¤J¦¸¼Æ", , 3)
  6. Do Until x = "" Or y = ""
  7. For i = 1 To y
  8.   ReDim Preserve ar(s)
  9.   ar(s) = x
  10.   If s = Application.Max([A:A]) Then GoTo 10
  11.   s = s + 1
  12. Next
  13. x = InputBox("¿é¤J¼Æ¦r", , 123)
  14. y = InputBox("¿é¤J¦¸¼Æ", , 3)
  15. Loop
  16. 10
  17. Range([L3], Cells(Rows.Count, 1).End(xlUp).Offset(, 11)) = ""
  18. If s > 0 Then [L3].Resize(s, 1) = Application.Transpose(ar)
  19. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí ¤W¤@¥DÃD