"Alain "Mbuna"" <mb***@telenet.be> schrieb:
Does anyone know what code I should use to check for the version number of
Excel, installed on a computer?
\\\
Dim o As Object = CreateObject("Excel.Application")
If Not o Is Nothing Then
On Error Resume Next
MsgBox( _
"Installed version of Excel: " & _
DirectCast(o.Version, String) _
)
o.Quit()
On Error GoTo -1
Marshal.ReleaseComObject(o)
Else
MsgBox("Maybe Excel is not installed!")
End If
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>