![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Via an "Input Box" is asked : "after which
row,you will insert a row?" When choosen for example 25,then the macro will automaticly select row 26 as an empty row. Have somebody such a macro? Thanks. |
|
|
|
#2 | |
|
Guest
Posts: n/a
|
Quote:
Code:
Sub InsertRow()
On Error Resume Next
Dim RowNum As Long
RowNum = Application.InputBox(Prompt:="Enter Row Number", Type:=1)
Rows(RowNum).EntireRow.Insert
End Sub
Russell |
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Foiled again! The last post was from me.
Why do I do this (posting this message saying that the last post was from me), you may ask? Because I like to search on my name to see the replies to my posts. -rh |
|
|
|
|
|
#4 | ||
|
Guest
Posts: n/a
|
Quote:
Thanks. Can you complete your |
||
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
[/quote]
Thanks for answer,but the macro does not insert an entire row.Can you complete your macro please? Thanks. [/quote] It works when I run it. (I am not Russell Hauf) |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|