Solved

Is Excel 2000 on the Pc

Posted on 2003-10-28
4
123 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 50 total points
ID: 9635712
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
ID: 9638602
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
ID: 10166208
I think the function I posted should have answered the question.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

732 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