I am working on a project wherin i open excel and close it but its instance is not going.
I have set objexcel=nothing
still its not goin>
wat must be the error?
can u suggest me any other method so that i can kill that excel instance which appears in the task manager.
If intFileErrors < 1 Then
Set ObjExcel = Nothing
ElseIf intFileErrors = intSelectedFiles Then
MsgBox "Alternate rows in the selected workbooks could not be shaded.", _
vbOKOnly, "RightAnswers"
If IsAppOpen("Excel", "Application") Then
Set ObjExcel = Nothing
End If
'Some errors occured
Else
MsgBox "Alternate rows in " & intSelectedFiles - intFileErrors & _
" workbooks have been shaded. Alternate rows in the following workbooks were not shaded: " & _
vbCrLf & vbCrLf & strFileErrors, vbOKOnly, "RightAnswers"
If IsAppOpen("Excel", "Application") Then
Set ObjExcel = Nothing
End If
End If