VHS01
Board Regular
- Joined
- Nov 3, 2005
- Messages
- 139
=COUNTIF(C9:C39,"<.43") entered into a cell works fine
I need to have code enter the formula
Trying to add it programically like this:
Range("C40").Formula = "=COUNTIF(C9:C39,"<.43")"
Gives the following red colored entry error
Compile error
Expected: end of statement
Changing to this:
Range("C40").Formula = "=COUNTIF(C9:C39,<.43)"
Gets rid of the entry error, but gives the following error when it runs
Run-time error ‘1004’:
Application-defined or object-defined error
Please help!
I need to have code enter the formula
Trying to add it programically like this:
Range("C40").Formula = "=COUNTIF(C9:C39,"<.43")"
Gives the following red colored entry error
Compile error
Expected: end of statement
Changing to this:
Range("C40").Formula = "=COUNTIF(C9:C39,<.43)"
Gets rid of the entry error, but gives the following error when it runs
Run-time error ‘1004’:
Application-defined or object-defined error
Please help!