Macro Tutorial - Insert multiple rows

Veröffentlicht am: 12 July 2017
auf dem Kanal: Twoperscent
10,450
51

In this video we explain how you can use an excel macro to insert multiple rows defined by an input box.

The code for the first part of the macro is as follows:

Dim numrow
numrow = Application.InputBox("How many rows would you like to add?", "Insert Row", , , , , , 1)

If IsNumeric(numrow) Then

For i = 1 To numrow

Call INR

Next i
End If

The code for the second part of the macro is as follows - Remember you may need to edit parts of this to fit your defined purpose.

Sheets("Sheet1").Range("A4").Select
ActiveCell.EntireRow.Insert Shift:=xlDown

Sheets("Sheet1").Range("A4:E4").Select
Selection.Borders.Weight = xlThin

For more info on editing code for this purpose then please watch this related video:
   • Creating a macro in Microsoft Excel t...  

If you have any questions or comments then please put these in the comments below. Thank you for liking and subscribing.


Auf dieser Seite können Sie das Online-Video Macro Tutorial - Insert multiple rows mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Twoperscent 12 July 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,450 Mal angesehen und es wurde von 51 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!