Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dim days As Variant Dim hours As Variant Dim holOptElig As Variant Dim wb As Workbook Set wb = Workbooks("Salary and Hourly Summary 2009.xls") days = wb.Names("MikeNbrHolidays").Value hours = wb.Names("MikeTotalHolHours").Value If days 0 Then holOptElig = hours / days <== error on this statement End If In "Salary and Hourly Summary 2009.xls", MikeNbrHolidays and MikeTotalHolHours are formatted as number/0 decimal places and number/1 decimal places respectively, and their values are 8 and 43.2. I get run time error 13, type mismatch when I run this code. TIA, Phil |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-Time error, type Mismatch | Excel Programming | |||
Run-time error 13, Type Mismatch | Excel Programming | |||
Run Time Error 13 Type Mismatch | Excel Programming | |||
Run-time error '13':Type mismatch | Excel Programming | |||
run time error 13 type mismatch | Excel Programming |