Solved

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

Posted on 1999-01-26
3
1,678 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Expert Comment

by:Bodya
ID: 1622785
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
ID: 1622786
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
ID: 1622787
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
problem with office 365 portal 7 42
Outlook 2016 processing loop 4 52
Sending HTML Formatted Email from ASP.NET 2 58
Using Outlook 2016 with ACT 2012 Pro 2 73
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

710 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