View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
XPete XPete is offline
external usenet poster
 
Posts: 7
Default using countif into a formula

This worked for me
;-)

Dim myRange As Range
Dim Formula As String

Set myRange = Worksheets("Sheet1").Range("A1:C10")

Formula = Application.WorksheetFunction.CountIf(myRange, "P")

MsgBox Formula