Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
This code gives an error (Application-defined or Object-defined error). Worksheets("PrintRpts").Range("O8").Formula = "=IF(E8<"",E8,-1)" But, when I type =IF(E8<"",E8,-1) directly into O8, I get the expected result. Any ideas where the problem is? Thanks a bunch anny |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need another pair of quotes.
Worksheets("PrintRpts").Range("O8").Formula = "=IF(E8<"""",E8,-1)" "anny" wrote: hi This code gives an error (Application-defined or Object-defined error). Worksheets("PrintRpts").Range("O8").Formula = "=IF(E8<"",E8,-1)" But, when I type =IF(E8<"",E8,-1) directly into O8, I get the expected result. Any ideas where the problem is? Thanks a bunch anny |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works beautyfully!
anny |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
right syntax | Excel Worksheet Functions | |||
VBA syntax | Excel Discussion (Misc queries) | |||
Syntax help please | Excel Programming | |||
Syntax Help | Excel Worksheet Functions | |||
syntax for a sub ( ) | Excel Programming |