'------------------------------------------------------- Public Function IsRegistered(ByVal class As String) As Boolean On Error Goto NotRegistered Dim obj As Object Set obj = CreateObject(class) IsRegistered = True Exit Function NotRegistered: End Function '------------------------------------------------------- Example Usage: '------------------------------------------------------- If Not IsRegistered("Excel.Application") Then MsgBox "Excel is not installed/registered." Else MsgBox "Excel is installed & registered." End If '-------------------------------------------------------Rahul