Results 1 to 3 of 3

Thread: detecting if user has excel

  1. #1

    Thread Starter
    Registered User jkw119's Avatar
    Join Date
    Oct 2001
    Location
    Pittsburgh
    Posts
    256

    detecting if user has excel

    is there a way to see if microsoft excel is loaded on the computer using vb? my program is useless if the user doesn't have excel...

    thanks,

    jeff

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I think you should be able to find the path of excel from the registry in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\Excel.exe if it returns vbNullString they haven't got it. You have to get some registry reading code first though.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    here's another way to do it.....

    Dim objExcelTest As Object

    Set objExcelTest = CreateObject("Excel.Application")

    If objExcelTest Is Nothing Then
    MsgBox "You don't have Excel installed."
    Else
    MsgBox "You do have Excel."
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width