Solved

Is Excel 2000 on the Pc

Posted on 2003-10-28
4
119 Views
Last Modified: 2010-05-03
Is there a method for checking the existence of Microsoft excel 2000 on the client machine?
0
Comment
Question by:visualbasic
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 50 total points
Comment Utility
Private Sub Command1_Click()
MsgBox IsExcel2000Installed
End Sub

Function IsExcel2000Installed() As Boolean
Dim xcel As Object
On Error Resume Next
Set xcel = CreateObject("excel.application")
If Err.Number = 0 Then
    If xcel.version = "9.0" Then
        IsExcel2000Installed = True
        Exit Function
    End If
End If
IsExcel2000Installed = False
End Function
0
 
LVL 2

Expert Comment

by:joefunsmith
Comment Utility
although you could rely on vb cleaning up after itself, you might want to include after
 IsExcel2000Installed = True,
 "set xcel = nothing"
unless of course you are going to use the created object

:)
0
 
LVL 28

Expert Comment

by:vinnyd79
Comment Utility
I think the function I posted should have answered the question.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now