Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to create a button using VB.net that will open the Address Book of Outlook. What's the code to open Outlook and perform a macro key (CTRL+Shift+B).

What I have tried:

I only have the button to open outlook but not the Address Book:

System.Diagnostics.Process.Start("C:\Program Files (x86)\Microsoft Office\Office16\OUTLOOK.exe")
Posted
Updated 6-May-19 6:05am
Comments
Richard Deeming 9-May-19 13:04pm    
NB: Your button to open Outlook will not work if the user has the 64-bit version of Office installed, or if they have installed the Office applications via Office365.

For example, my 32-bit version of Outlook is installed in:
C:\Program Files (x86)\Microsoft Office\root\Office16\

1 solution

 
Share this answer
 
Comments
Maciej Los 6-May-19 12:28pm    
Brilliant!
Richard MacCutchan 6-May-19 12:52pm    
Thanks; but not too difficult to find.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900