View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Vj Vj is offline
external usenet poster
 
Posts: 54
Default Find internet explorer is installed using vba excel

Thanks guys for your help.

Appreciate your efforts.

"Bernie Deitrick" wrote:

You could try:

Dim ie As Object
On Error Goto NoIE
Set ie = CreateObject("InternetExplorer.Application")
On Error Goto 0
Goto BrowserOK
NoIE:
On Error Goto NoSafari
Set ie = CreateObject("Safari.Application")
Goto BrowserOK
NoSafari:
Msgbox "No Browser"
Exit Sub
BrowserOK:
--
HTH,
Bernie
MS Excel MVP


"VJ" wrote in message
...
Hi,

Is there any way I can find out whether Internet Explorer is installed in
machine using VBA?

I already have a code in which I can open hyperlink using VBA but one of my
test machine has mac which doesnot have IE.

I need to add the error handling that If IE is not installed then Use the
Safari instead of IE.

Help would be appreciated.

Thanks