Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1999-01-26
3
Medium Priority
?
1,686 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 280 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 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 …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

715 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