Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this might be all you need.
Option Explicit Dim lastrow As Long Sub insertrow() lastrow = Cells(Rows.Count, "A").End(xlUp).offset(1,0).Row Range("a" & lastrow).EntireRow.Insert End Sub -- Gary "Mark Williams" wrote in message ... Hi All, I am trying to write a macro that will insert a row above a blank row in a range I've named "PriorPTI". The blank row is the last row in a range that contains 12 rows. The range will grow as I insert more rows. I am not a programmer so any help will be greatly appreciated as I've spent two work days trying to figure this out (Yes: it is rocket science :-)). Regards, Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot insert worksheet in exel - not available in insert menu | Excel Worksheet Functions | |||
insert row / insert column command buttons | Excel Worksheet Functions | |||
Can I auto insert a worksheet when I insert a value in a cell. | Excel Worksheet Functions | |||
Insert Next? Or insert a variable number of records...how? | Excel Discussion (Misc queries) | |||
Insert cell/format/text/fontsize and auto insert into header? | Excel Programming |