Solved

Is Excel 2000 on the Pc

Posted on 2003-10-28
4
124 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
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…
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…

717 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