Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've searched through similar topics and tried several variations of code,
but I keep getting a type-mismatch error when trying to use Sumproduct. I am wanting to use this in several parts of my code. The first instance (which is also where the error keeps occurring) is below. With Worksheets("Hours") TotalHrs = .Evaluate("SUMPRODUCT((HoursCodes=ClassCode)* _ (HourStat=CliStat)*PeriodHours)") End With TotalHrs is dim'd as Single, ClassCode as String (either 4 or 5 characters long), CliStat as Integer (0, 1, or 99), and the rest as Ranges. I've tried adjusting the syntax in every way I can think of and based on other examples I could find, but each time I get the type-mismatch error. Do I just have something dim'd incorrectly? Thanks for time and help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help. Sumproduct Data Type Mismatch Erro | Excel Programming | |||
Sumproduct in VBA Type Mismatch problem | Excel Programming | |||
runtime error 13 - type mismatch error in Excel 97 on Citrix | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming |