Solved

Is Excel 2000 on the Pc

Posted on 2003-10-28
4
120 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 50
using Access 8 59
VBS file using code from 2nd file (txt or vbs) 4 31
How does CurrentUser work? 10 31
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now