Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to insert the following formula into my spreadsheet using
the following code 'insert formula =IF(G2<"",DATEDIF(G2,H2,"d")+1,"") .cells(lnextrow,"I").formula="=IF(G" & lprevsumrow & "<" & """" _ & ",DATEDIF(G" & lprevsumrow & ",H" & lprevsumrow & "," & ""d"" & _ ")+1, "& """" & ")" The row will not always be 2, but will be a long variable called lPrevSumRow. I'm getting an "end of statement" compile error, highlighting the d in double quotes. I'm missing something in the syntax. But what the *&^% is it? Thanks again. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting Formula | Excel Discussion (Misc queries) | |||
HELP with inserting formula | Excel Programming | |||
inserting a formula | Excel Discussion (Misc queries) | |||
Formula changes while inserting a row !!!! | Excel Worksheet Functions | |||
Inserting Formula | Excel Programming |