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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Office Web Components...

Status
Not open for further replies.

kalebson

Programmer
Mar 3, 2006
60
US
Is there a way to check and see if you have Office Web Components installed on the PC?
 
kalebson,
One way might be to check if a certain file exists. Here is a sample test to see if the Microsoft Office Web Components Function Library (MSOWCF.DLL) exists in the standard directory.
Code:
Function TestForMSOWebComponentsFunctionLibrary() As Boolean
Dim strReturn As String
strReturn = Dir("C:\Program Files\Microsoft Office\Office\MSOWCF.DLL")
If strReturn <> "" Then
  TestForWebComponents = True
End If
End Function

Hope this helps,
CMP

(GMT-07:00) Mountain Time (US & Canada)
 
Nice..That worked great thx..I also found that it was pointing to the wrong directory in my Registry..thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top