Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the following to put a formula in the first cell and copy it down
to the other cells. It is working good, but I need it to copy one cell further than it does. Any way to force it? Range("E2:E" & Range("D65536").End(xlUp).Row).FormulaR1C1 = _ "=IF(RC[-1]0,TODAY()-(RC[-1]+30),"" "")" Thank you very much! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jasmine,
You can use the offset function (search for "Offset" in the VBA help). Modifying your code to insert a '.offset(1,0)' beween the 'End(xlup)' and the '.Row' should do what you want it to. Range("E2:E" & Range("D65536").End(xlUp).Offset(1, 0).Row).FormulaR1C1 = "=IF(RC[-1]0,TODAY()-(RC[-1]+30),"" "")" Mike "Jasmine" wrote: I am using the following to put a formula in the first cell and copy it down to the other cells. It is working good, but I need it to copy one cell further than it does. Any way to force it? Range("E2:E" & Range("D65536").End(xlUp).Row).FormulaR1C1 = _ "=IF(RC[-1]0,TODAY()-(RC[-1]+30),"" "")" Thank you very much! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting date from formuls | Excel Discussion (Misc queries) | |||
Formuls to turn date red | Excel Discussion (Misc queries) | |||
Formating Font in a Formuls | New Users to Excel | |||
Formuls updating | Excel Worksheet Functions | |||
how do I do a formuls in excel such as (if a1=somthing then b1=a . | Excel Worksheet Functions |