excel program be or not in computer

X

x taol

i want to know whether setting excel program in the current computer
using vba.

function bln_excel_is_be() as boolean
~~~~~~~~~~
msgbox "yes or no"
end function

*** Sent via Developersdex http://www.developersdex.com ***
 
N

NickHK

Not sure what you mean.
VBA has to run inside an application. As this is an Excel NG, it's assumed
you are running Excel VBA. As such Excel is installed.
But in Word, Access etc you use this to see if Excel is available :

Dim XLApp as Object
set xlapp=createobject("Excel.Application")

if xlapp is nothing then exit sub

Or may be check some registry keys :
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top