Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi folks,
I'm trying to get my code to insert an IF formula into a cell... Range("D2").Select ActiveCell.Formula = "=IF(C2='Y',1,0)" but I keep getting an object-defined error. I've tried variations of quotes and parens. but the best I am able to come up with is having it populate the formula as a string. What am I missing? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Syntax problem | Excel Programming | |||
Syntax problem | Excel Worksheet Functions | |||
Syntax Problem with formula code | Excel Programming | |||
Another Syntax Problem | Excel Programming |