Home |
Search |
Today's Posts |
#14
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
David
Yes I did know about 2007 but thanks for the pointer - it was excelent. regards Peter "David McRitchie" wrote: Hi Billy, I was thinking along those lines of extending formulas down a column as well, but the solution wanted turned out to be a a formula to effect a transpose as Ron's answer was what the poster wanted. Anyway in your suggestion you do not want to hardcode 65536 for rows or for that matter 256 for columns, because sooner or later it was going to get changed and Excel 2007 has changed that. You might take a look at http://www.mvps.org/dmcritchie/excel/insrtrow.htm http://www.mvps.org/dmcritchie/excel/offset.htm -- HTH, David McRitchie, Microsoft MVP -- Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm "Billy Liddel" I just realised that if you are adding rows or already have run the macro to get partial results then I should have rewritten the code. Ig note the one above and use the following: Sub InsertRow() Dim c, d, nr As Long 'nr = Range("A1").CurrentRegion.Rows.Count nr = Range("A65536").End(xlUp).Row |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically insert rows with formula | Excel Worksheet Functions | |||
Formula to Insert Rows | Excel Worksheet Functions | |||
automatically insert formula when new rows are inserted | Excel Worksheet Functions | |||
Same formula in each cell of column; insert rows w/o copying down | Excel Discussion (Misc queries) | |||
Insert rows, keep a formula? | Excel Worksheet Functions |