A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Attachments collection bug ?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 25th 09, 01:51 PM posted to microsoft.public.outlook.program_vba
chauwel
external usenet poster
 
Posts: 1
Default Attachments collection bug ?

Outlook 2K3/Exchange

I'm developping a macro to remove all embedded images from my company's mail
templates, but although the templates actually contains images, the
attachments collection remain empty at runtime. And the part that drive me
crazy: in debug mode, the collection is empty (Count=0, etc) until I expand
manually the "attachments" node of my mailitem object in the "Locals" window,
then the collection is populated.

The embbeded images are of type olOLE and there is no other attachment in
the templates. Is that a bug or am i missing something ?
Ads
  #2  
Old November 25th 09, 02:30 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Attachments collection bug ?

Show the code you use.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"chauwel" wrote in message
...
Outlook 2K3/Exchange

I'm developping a macro to remove all embedded images from my company's
mail
templates, but although the templates actually contains images, the
attachments collection remain empty at runtime. And the part that drive me
crazy: in debug mode, the collection is empty (Count=0, etc) until I
expand
manually the "attachments" node of my mailitem object in the "Locals"
window,
then the collection is populated.

The embbeded images are of type olOLE and there is no other attachment in
the templates. Is that a bug or am i missing something ?


  #3  
Old November 25th 09, 03:51 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default Attachments collection bug ?

Also, please explain just what you mean by "mail templates." That could be a
couple of different things in an Outlook context. And it might be helpful to
know why you're doing this -- doesn't that render the templates less
useful? -- and whether Word is your email editor.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Ken Slovak - [MVP - Outlook]" wrote in message
...
Show the code you use.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"chauwel" wrote in message
...
Outlook 2K3/Exchange

I'm developping a macro to remove all embedded images from my company's
mail
templates, but although the templates actually contains images, the
attachments collection remain empty at runtime. And the part that drive
me
crazy: in debug mode, the collection is empty (Count=0, etc) until I
expand
manually the "attachments" node of my mailitem object in the "Locals"
window,
then the collection is populated.

The embbeded images are of type olOLE and there is no other attachment in
the templates. Is that a bug or am i missing something ?




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Links Collection Michele Outlook and VBA 2 January 12th 09 06:45 PM
how to delete a collection of e-mails john christy Outlook - General Queries 2 December 9th 08 03:24 PM
Data Collection Add-in Error jz Outlook - Installation 0 October 24th 08 05:35 PM
Outlook 'Conflicts' collection David Tongeman Outlook and VBA 1 July 12th 07 09:17 PM
how to use the CommandBars Collection Jim B Outlook - Using Forms 0 January 22nd 06 12:46 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.