Open specific web page from outlook macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have coded macro which is attached to a custom button showed on all of my emails

When press this button it resizes the email to half of the screen area

I want the next produre in the macro to open internet explorer and point at specific page

Can this be done

Thanks
 
Dim objIEApp As SHDocVw.InternetExplorer

On Error Resume Next

Set objIEApp = CreateObject("InternetExplorer.Application")

objIEApp.Navigate "Web URL here in normal style"
objIEApp.Visible = True

Set objIEApp = Nothing

You will need a project reference set to Microsoft Internet Controls
(shdocvw.dll).
 
Back
Top