Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey every, i have a problem.
I have a spreadsheet that several rows, and multiple calculated in the columns in that row. The values are dependant on the row above, and also another cell that is "locked" (eg. $C$4). What i need to do is insert a row in the middle of the rows, and then have it "drag" the row above the inserted rown down 2 rows to add and correct the equations in the blank row. The row under the inserted row is wrong because now it looks at the cell 2 rows above it, not one. Anyone know a simple code to fill a range down with the formula? I have this from the macro but i need to make it general so it automaticly will do it for any place i insert a row. Sub Macro2() ' Macro2 Macro Selection.EntireRow.Insert Selection.AutoFill Destination:=Range("B21:K23"), Type:=xlFillDefault Range("B21:K23").Select End Sub The Range("B21:K23") is what i need to generalize. I hope i wasn't too wordy. Thanks in Advance CSUS_CE_Student |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
auto fill or auto search from a list or drop-down list??????? | Excel Discussion (Misc queries) | |||
Auto-populate, Auto-copy or Auto-fill? | Excel Worksheet Functions | |||
using auto fill edit or fill handel | Excel Worksheet Functions | |||
Auto fill down | Excel Programming | |||
auto filter and auto fill | Excel Programming |