Hi, My application have some modules that use Excel like a external program.
My problem is when the user don't have Excel, I would like exclude the code
that use excel inside my code, because this make me a fatal crash. How I
make that?.
For example, I have the next code:
'-------------
Imports Excel = Microsoft.Offic e.Interop.Excel
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
'OTHER CODE HERE
try
Dim m_Excel As new Excel.Applicati on
Working_excel(f older_sel, "", m_Excel) 'Function inside other
module.
Catch ex As Exception
End Try
End Sub
End Class
'--------------
Thanks in advance for any help.
Freddy Coal
My problem is when the user don't have Excel, I would like exclude the code
that use excel inside my code, because this make me a fatal crash. How I
make that?.
For example, I have the next code:
'-------------
Imports Excel = Microsoft.Offic e.Interop.Excel
Public Class Form1
Private Sub Form1_Load(ByVa l sender As System.Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
'OTHER CODE HERE
try
Dim m_Excel As new Excel.Applicati on
Working_excel(f older_sel, "", m_Excel) 'Function inside other
module.
Catch ex As Exception
End Try
End Sub
End Class
'--------------
Thanks in advance for any help.
Freddy Coal
Comment