Solved

** Time Saver: Shortcut to Outlook Address Book **

Posted on 1999-01-26
3
1,656 Views
Last Modified: 2008-02-26
I have been hunting around for the solution to this problem for about a week now with no success.

Q) I have been trying to customise the office shortcut bar with some shortcuts to outlook features. I have had success with the referencing of IPM class types in the shortcut target command line to bring up new mail forms, contacts list, tasks etc.

What i want to know is how can i reference in a form script or command line switch to bring up the Global Address book from a shortcut in one click from the office bar or desktop?

I have tried using the open item sub to bring up the address book via a IPM class reference but my knowledge of the object models and VB arent sufficient.
0
Comment
Question by:nbruse
  • 2
3 Comments
 
LVL 2

Expert Comment

by:Bodya
Comment Utility
The problem with the address books is that it is no access to it provided by Outlook object model. The knowledge of MAPI will be rather helpfull here. But, may be you can specify your tast more explicitly, that we shall be able to find another way. Certainly, the address book is very seldom needed as itself, it is needed for certain purposes, i.e. composing the letter, getting a list of contacts etc., which can be realised with help of other Outlook features.
0
 
LVL 2

Accepted Solution

by:
Bodya earned 70 total points
Comment Utility
Oh I find a desision. Look at this VBasic code
(in your VB project you should set references to the following libraries:
 Microsof Outlook Object Library
Microsoft Office Object Library)

Dim oApp As Outlook.Application
Dim oCB As Office.CommandBar
Dim oCBContr As Office.CommandBarControl

Set oApp = CreateObject("Outlook.Application")
'getting reference to menu Tools
Set oCB = oApp.ActiveExplorer.CommandBars.ActiveMenuBar.Controls("Tools").CommandBar
'command "Address Book..." is a third item in menu
Set oCBContr = oCB.Controls(3)
oCBContr.Execute

------------------
this code do the following:
1. Opens Outlook
2. Uses the menu command "Address book...", which is the third menu item in the menu "Tools" (in my version of Outlook)
to open the Address book

So, you can write a VB program with this code, make an exe file and place the shortcut to it on your Office shortcut bar.

0
 

Author Comment

by:nbruse
Comment Utility
Thanks Bodya,
I had thought about doing it that way, but i had no idea about the VB commands to do it. One other problem i have is that i only have the VB editor that comes with office 97 and i cant seem to create an executable. Is there a scripting tool that can run a script file in win 95. Otherwise i think i can get my hands on an VB compiler from somewhere. Rgds

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Outlook Free & Paid Tools
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now