- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 10# lpk187
¥i¥Î¦Û°Ê¶ñº¡,¸Õ¸Õ- Sub Worksheet_Change(ByVal Target As Range)
- Dim i As Integer
- If Target.Address = "$B$2" Then
- Application.EnableEvents = False
- Cells(2, "A") = 1
- i = Application.InputBox("How many numbers you want to add?", "Prompt", , , , , , 1)
- With Range("A2:B2")
- Range(.Cells.Offset(1), .Cells.End(xlDown)) = "" '²M°£Â¦³¸ê®Æ
- .AutoFill Range("A2:B2").Resize(i) '¦Û°Ê¶ñº¡
- End With
- Application.EnableEvents = True
- End If
- End Sub
½Æ»s¥N½X |
|