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: 296
Default Attaching an Outlook Library programatically

I have a workbook which is distributed to many users. I'd like to
build into it a procedure which would automatically save the Wb,
attach it to an email and send it back to me.

One of the difficulties I've found is that I can't guarantee that all
users have an Outlook Object Library selected. Hence when the
procedure starts with the usual declaration:-

Dim oOutlookObj as Outlook.Application

the user gets the error message 'Compile error: User-defined type not
defined'

Leaving aside the illogicality of that statement, is there any way
that the Object Library can be attached programatically? i.e the
equivalent of manually selecting Tools References and then clicking
the Outlook Object Library in the VBA window

TIA


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
 
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
Attaching an Outlook email into a cell Joanne R Excel Discussion (Misc queries) 0 December 15th 08 11:17 PM
Attaching Emails in Outlook Message Format Marie FP[_2_] Excel Discussion (Misc queries) 1 June 23rd 08 07:01 PM
Outlook 11 Outlook 10 Object Library Compatibility Issues Paul Mac[_4_] Excel Programming 11 May 19th 06 04:27 AM
Trouble attaching an Excel file in Outlook 2003 - Help Lionel Excel Discussion (Misc queries) 1 April 9th 05 09:03 PM
Programatically sending a sheet through Outlook Mark Scott[_4_] Excel Programming 11 February 10th 05 05:04 PM


All times are GMT +1. The time now is 06:51 AM.

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"