Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if Excel is installed? 1

Status
Not open for further replies.

snuv

Programmer
Oct 30, 2001
751
GB
Is there an easy way, using VB.NET, to check if excel is installed

"If it could have gone wrong earlier and it didn't, it ultimately would have been beneficial for it to have." : Murphy's Ultimate Corollary
 
ExcelApp = GetObject(, "Excel.Application")

If ExcelApp Is Nothing Then
ExcelApp = CreateObject("Excel.Application")

If ExcelApp Is Nothing Then
' error with excel ****
End If
End If



**** : Any error trying to find it, or it is not installed.
 
You could also try...

try
dim app = new Excel.application
catch
msgbox("No excel")
exit sub
end try
 
This question was asked an answered not one month ago:

thread796-1132494

Please do a search next time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top