LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Invoke Outlook Contacts From Within Excel

Hi folks,

I don't do much with VBA, so any explicit help is greatly appreciated.

I'm trying to push a button in Excel and have it:

See if Outlook is already started. If not - start it up.
Change focus to the Outlook Contacts page.


I've looked at several postings in this group and tried some stuff, but

nothing seems to work, thus far. Here is what I tried (Commented out
cause it didn't work.) So feel free to ignore the code snippits I've
found. (I could also use a suggestion on a really good book on
programming in VB and/or VBA for a programmer coming from a totally
different paradigm.)

'Dim IsItRunning As Boolean

' On Error Resume Next
' whichprogram = GetObject(, "Outlook.Application")
' If whichprogram = "Outlook" Then IsItRunning = True Else
IsItRunning = False ' <== This stmt did not work.
' Err.Clear
' If WhichProgram = "Outlook" Then IsItRunning = True
' If IsItRunning = False Then
' Dim RetVal
' RetVal = Shell("C:\Program Files\Microsoft
Office\Office11\Outlook.EXE", 6)
' End If


AND I TRIED THE FOLLOWING:


' Dim objOutlook As Object
' Dim objPhonelist As Object
' Dim olNameSpace As Object


'''Set the reference to the Outlook object model
' On Error Resume Next
' ThisWorkbook.VBProject.References.AddFromFile Application.Path & _

' "\00SVO\Company Directory\Company Phone Numbers"
' On Error GoTo 0


'''Create the Outlook object
' Set objOutlook = CreateObject("Outlook.Application")


'''Get Outlook's work area
' Set olNameSpace = objOutlook.GetNamespace("MAPI")


'''Access and display the default Inbox folder
' Set objPhonelist = olNameSpace.GetDefaultFolder(objPhonelist)
' objInbox.Display


Thank you in advance for your help.


Kind regards,
Cole

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Contacts from Excel to Outlook Ergg Excel Discussion (Misc queries) 1 January 20th 10 10:12 PM
How do I export contacts from Excel back to Outlook Contacts? corvettego Excel Discussion (Misc queries) 2 August 17th 09 06:29 PM
export from 07 excel to outlook contacts Bluedee Excel Worksheet Functions 0 September 18th 08 04:36 PM
Selected Outlook contacts to excel landshark Excel Discussion (Misc queries) 1 April 17th 07 09:30 PM
Invoke Outlook Express SendMail From Excel VBA Alan Excel Programming 1 February 6th 04 06:27 PM


All times are GMT +1. The time now is 11:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"