+ Reply to Thread
Results 1 to 10 of 10

vba to send email and attachments via lotus 8.5

Hybrid View

  1. #1
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: vba to send email and attachments via lotus 8.5

    I'm off out soon so haven't time to specifically answer your questions (I also don't use Lotus any more so can't test anything) but the attached is a more simplified code for sending a workbook as an attachment via Lotus. In this case it's the active workbook but can be quite easily adapted to be any file you want.

    To add more than one attachment you would just either repeat these lines with the specific attachment required assigned to stAttachment or create some kind of loop:

      Set noAttachment = noDocument.CreateRichTextItem("stAttachment")
    
      Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", stAttachment)

    Hope it helps,

    Dom
    Attached Files Attached Files
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  2. #2
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    Re: vba to send email and attachments via lotus 8.5

    Quote Originally Posted by Domski View Post

    To add more than one attachment you would just either repeat these lines with the specific attachment required assigned to stAttachment or create some kind of loop:

      Set noAttachment = noDocument.CreateRichTextItem("stAttachment")
    
      Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", stAttachment)
    do u mean this?
    eg.
    Set noAttachment = noDocument.CreateRichTextItem("c:\Users\Dan\newfolder\filename")
    and for multiple attachments,

    Set noAttachment = noDocument.CreateRichTextItem("c:\Users\Dan\newfolder\filename1")
    
      Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", c:\Users\Dan\newfolder\filename1)
    
    Set noAttachment = noDocument.CreateRichTextItem("c:\Users\Dan\newfolder\filename2")
    
      Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", c:\Users\Dan\newfolder\filename2)
    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1