-2

I'm looking for some vbs script or shortcut for opening Outlook Address Book (keyboard shortcut: CTRL+SHIFT+B),or it can be DwmApi # associated with this combination? Found similar discussion here: VBScript SendKeys CTRL+LWIN+TAB? Any help is much appreciated!!

Community
  • 1
  • 1
Igor Rabkin
  • 85
  • 2
  • 12

1 Answers1

0

If I understand your question correctly, you're looking for this:

set ol = CreateObject("Outlook.Application")
ol.Session.GetSelectNamesDialog.Display
Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328
  • This is it!! Thank you!! – Igor Rabkin Jun 16 '15 at 09:06
  • sorry, but checked again and it's almost what I need... when i'm using CTRL+SHIFT+B combination, GAL window appears without To, Cc and Bcc fields, so when I'm searching for the user, by double click afer i've find it, it shows his properties and not add it to the "To" filed... So i'm need the script will open the GAL in the same way as if I'm using CTRL+SHIFT+B combination. – Igor Rabkin Jun 16 '15 at 09:18
  • 1
    These fields are displayed only when you're composing a message, regardless of how you open the address book. – Ansgar Wiechers Jun 16 '15 at 09:32
  • When I'm using script, you're provided it looks like in the screen bellow: – Igor Rabkin Jun 16 '15 at 11:04
  • And when I'm using CTRL+SHIFT+B combination it looks different: – Igor Rabkin Jun 16 '15 at 11:06
  • I'm aware of what the address book looks like. Read again. – Ansgar Wiechers Jun 16 '15 at 12:12
  • First of all shank for you'r help!! May be I'm didn't explain my needs properly... I need some quick way to find user alias from outlook 2013. – Igor Rabkin Jun 16 '15 at 12:24
  • So the quickest way to do it is create some script for quickly open Outlook GAL, search the user by user id, double click on user and user properties window will poup with all relevant information. In the script, you're provided (thanks again) when I'm searching the user by his ID it found it, but when I'm clicking on it it just add the user to the "To" filed (like I want send the email) instead of open user properties. I can open user properties by right click on the user >> properties, but is no so suitable.... When I'm using CTRL + Shift + B keys it working as expected. – Igor Rabkin Jun 16 '15 at 12:34
  • I hope it is clear now. trying to use send keys method: – Igor Rabkin Jun 16 '15 at 12:35
  • set WshShell = WScript.CreateObject("WScript.Shell") WshShell.SendKeys ("^+{B}") WScript.Quit() but it's not working – Igor Rabkin Jun 16 '15 at 12:35