| ©«¤l552 ¥DÃD3 ºëµØ0 ¿n¤À578 ÂI¦W0  §@·~¨t²Îwin7 ³nÅ骩¥»office 2010 ¾\ŪÅv50 ©Ê§O¨k µù¥U®É¶¡2015-2-8 ³Ì«áµn¿ý2024-7-9 
   
 | 
                
| ¦^´_ 9# leehom ½Æ»s¥N½XSub worksheet_change(ByVal Target As Range)
     If Target.Address = "$B$2" Then
     Application.EnableEvents = False
        Cells(2, Target.Column - 1) = 1
     i = Application.InputBox("How many numbers you want to add?", "Prompt", , , , , , 1) - 1
     For j = Target.Row + 1 To Target.Row + i
         Cells(j, Target.Column) = Left(Cells(j - 1, Target.Column), 5) & Right(Cells(j - 1, Target.Column), 7) + 1
         Cells(j, Target.Column - 1) = Cells(j, Target.Column - 1).Row - 1
     Next
     Application.EnableEvents = True
     End If
End Sub
 | 
 |