Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() What is wrong with this? it has run-time error:'13' Type mismatch. Private Sub CommandButton2_Click() stud_grp = Sheets("StudGrp_BU").Range("$B$24:$B$62") CS_prog = Sheets("05_S2").Range("$D$8:$D$35") CS_dip = Sheets("05_S2").Range("$E$8:$E$35") time_slots = Sheets("StudGrp_BU").Range("$C$6:$CN$7") If stud_grp = CS_prog And CS_dip Then (this was highlighted when i clicked on the button) time_slots = 1 End If End Sub Please help. Thank you. -- tandavina ------------------------------------------------------------------------ tandavina's Profile: http://www.excelforum.com/member.php...o&userid=30334 View this thread: http://www.excelforum.com/showthread...hreadid=500483 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) | Excel Programming | |||
Run-time error '11' & Run-time error '1004' | Excel Programming |