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: 360
Default Lotus Notes Attachments

I made an Excel workbook with vba that users in the field use to
create and attach a file to an email and send it. I then was expecting
that I could use vba to collect and manipulate the attachments.

The issue is that the code I'm using will grab any attached file
except these automated attachments. I had noticed that the code didn't
pick up some other csv files created from another application (don't
know what it is) from another, unrelated source.

Here are the variables to create the attachments:
stAttachment = activeworkbook.FullName
Set noAttachment = noDocument.CreateRichTextItem("stAttachment")
Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "",
stAttachment)

and the lines to collect the attachments:
If noDocument.HasEmbedded Then
Set vaItem = noDocument.GetFirstItem("Body")
If vaItem.Type = RICHTEXT Then
For Each vaAttachment In vaItem.EmbeddedObjects
If vaAttachment.Type = EMBED_ATTACHMENT Then
vaAttachment.ExtractFile stPath & Format(Date,
("mmddyy")) & " " & _
vaAttachment.Name
End If
Next vaAttachment
End If
End If
Set noDocument = noNextDocument
Loop

I think the issue may be that the automated attachments aren't in the
body of the email, but I'm not familiar enough with Lotus Notes'
object model to know where else to look or how to refer to it. They
both are embedded rich text items... right?

I tried to put noEmbedObject in the body of the emails, but it causes
an automation error. Probably has to be a string? How does it work
when you attach files manually?

So - how can I collect these automated attachments with vba?

This is also posted in Lotus Notes Programming
http://groups.google.co.uk/group/com...e7acca2cf3cb85

Thanks!
Cliff Edwards
 
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
Lotus Notes Steve Excel Discussion (Misc queries) 0 February 25th 09 08:27 PM
lotus notes attachments dunks Excel Worksheet Functions 0 March 28th 07 03:07 AM
Mail über Lotus Notes aus Excel heraus/ Sending Mail with Excel through Lotus Notes [email protected] Excel Programming 0 February 19th 07 12:11 PM
Open Lotus Notes attachments aww91 Excel Programming 0 October 4th 06 02:30 AM
Lotus Notes Newbie Excel Programming 0 September 20th 04 01:55 PM


All times are GMT +1. The time now is 05:06 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"