- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
Sub ¸ê®Æ() 'K2
Dim iRows%, iNum%, iI%
Dim vData, vTimes
iRows = [A65535].End(xlUp).Row
iNum = 3
vData = Application.InputBox("¿é¤J¼Æ¦r", "½Ð¿é¤J¸ê®Æ", Range("AA1"), Type:=2)
Do Until vData = 0 Or vData = "" Or iNum > iRows
Range("AA1") = vData
vTimes = Application.InputBox("¿é¤J¦¸¼Æ", "½Ð¿é¤J¼g¤J¸ê®Æªº¦¸¼Æ", Type:=2)
If vTimes = 0 Or vTimes = "" Then
Exit Sub
Else
For iI = 0 To vTimes - 1
Cells(iNum + iI, 2) = vData
Next
iNum = iNum + iI
End If
If iNum <= iRows Then
vData = Application.InputBox("¿é¤J¼Æ¦r", "½Ð¿é¤J¸ê®Æ", Range("AA1"), Type:=2)
End If
Loop
End Sub |
|