Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to create a VBA function that looks at a Range of data on Sheet2,
and uses the SumProduct function to return the number of occurances in that range. I keep getting a Type Mismatch error, but I can't figure out why. Any suggestions? Sub TermsMarketBreakdown() ' Breaksdown the number of terms by Market Dim CentralTerms Dim Terms_Market Set Terms_Market = Sheet2.Range("E2:E300") CentralTerms = Application.WorksheetFunction.SumProduct((Terms_Ma rket = "Central") * 1) Cells(1, 1) = CentralTerms End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Type Mismatch? | Excel Programming | |||
Type Mismatch: array or user defined type expected | Excel Programming | |||
Type mismatch using rnge as Range with Type 8 Input Box | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Type mismatch | Excel Programming |