J
Johnny
Hello,
I sent the results of an acces query to excel using code and
everything worked fine.
The problem is when I tried to add code to insert a formula on a
specific cell I got an error message:
Run-time error "1004"
Application-define or obect-defined error
the code that generate the error in access vba is:
..Range("C162").Formula = "=COUNTIF(C2:C157;" & "Normal" & ")"
Any ideas how to add a COUNTIF in a excel cell from access vba code??
Tks in advance
I sent the results of an acces query to excel using code and
everything worked fine.
The problem is when I tried to add code to insert a formula on a
specific cell I got an error message:
Run-time error "1004"
Application-define or obect-defined error
the code that generate the error in access vba is:
..Range("C162").Formula = "=COUNTIF(C2:C157;" & "Normal" & ")"
Any ideas how to add a COUNTIF in a excel cell from access vba code??
Tks in advance