View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Susan Susan is offline
external usenet poster
 
Posts: 1,117
Default Why does this COUNTIF code not work

try double quotes around "Missed code date".......... it's reading it
as the end of the code.

E2:#25,""Missed code date"")"

hope that helps
:)
susan


On Oct 20, 2:22*pm, ChipButtyMan wrote:
Hi,
* * *I get an Expected; end of statement error with this code. The
word 'Missed' is highlighted as the point of the error.

Private Sub CommandButton8_Click()

Range ("L2").Formula = "=COUNTIF(E2:E25,"Missed code date")"

End Sub