Link to home
Start Free TrialLog in
Avatar of ajosephson
ajosephson

asked on

MS Outlook VBA - to launch a browser and/or goto a URL

Hi

Using Outlook rules to execute a VBA script upon receipt on an email, I'd like the script to go to a URL with the email subject appended..

Here is where I'm at -

ALT-11 to open VBA debugger in Outlook

The Outlook rule runs the following script (which displays a MSG box with the subject) ->

Sub CustomMailMessageRule(Item As Outlook.MailItem)
   MsgBox "Mail message arrived: " & Item.Subject
End Sub

I'd like to know how to do this (example)->

Sub CustomMailMessageRule(Item As Outlook.MailItem)

  " ExecuteInternetExplorer ("http://192.168.0.66/displaytext?text=New+email" & Item.Subject "

End Sub

I know very very little about VBA - pls only respond if you’re fairly sure you have an answer.

Rdgs
AJ
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please can you explain why just a B-grade !
Is there somenthing not working from the solution I provided ?
Avatar of ajosephson
ajosephson

ASKER

Thank you.... had come up with same from http://www.vba-programmer.com/VB_Code/URL_from_ShellExecute.txt

Works great!

Glad I could help you (and also very good from you that you also look at other sites to see if there are solutions).