+ Reply to Thread
Results 1 to 7 of 7

VBA - Lotus Notes

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    Portugal
    MS-Off Ver
    2013
    Posts
    14

    VBA - Lotus Notes

    Good Afternoon,

    I have a macro that creates an email using Lotus Notes.

    The problem is that instead of attaching the Excel file it puts the path to where the find the file.

    Can you please help me?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA - Lotus Notes

    Why is stAttachment in quotes here?
    Please Login or Register  to view this content.
    That will make VBA read it as the literal string 'stAttachment' not whatever is in the variable stAttachment.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    05-08-2016
    Location
    Portugal
    MS-Off Ver
    2013
    Posts
    14

    Re: VBA - Lotus Notes

    Quote Originally Posted by Norie View Post
    Why is stAttachment in quotes here?
    Please Login or Register  to view this content.
    That will make VBA read it as the literal string 'stAttachment' not whatever is in the variable stAttachment.
    Well that was a mistake

    Thanks for noticing.

    Still it doesnt solves the main issue here.

    Thank you.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA - Lotus Notes

    Actually I've misread the code, though it is confusing.

    I think "stAttachment" is being used here to create a rich text object named 'stAttachment'.
    Please Login or Register  to view this content.
    By the way, where are you setting/getting the value for fich2?

  5. #5
    Registered User
    Join Date
    05-08-2016
    Location
    Portugal
    MS-Off Ver
    2013
    Posts
    14

    Re: VBA - Lotus Notes

    Quote Originally Posted by Norie View Post
    Actually I've misread the code, though it is confusing.

    I think "stAttachment" is being used here to create a rich text object named 'stAttachment'.
    Please Login or Register  to view this content.
    By the way, where are you setting/getting the value for fich2?
    fich2 is a excel file that's created before this code runs.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: VBA - Lotus Notes

    Have you checked that stAttachment is actually getting the value from fich when you run this code?

  7. #7
    Registered User
    Join Date
    05-08-2016
    Location
    Portugal
    MS-Off Ver
    2013
    Posts
    14

    Re: VBA - Lotus Notes

    First thing i checked was that.It gives the file path to the correct excel. I'm lost because i have another file where i can get the attachment to the email...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel to Lotus Notes
    By locopete999 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2016, 08:45 AM
  2. Embed image into Lotus Notes with VBA - not using Notes.NotesUIWorkspace
    By pmor1503 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2014, 11:49 PM
  3. where would you go to discuss Lotus notes help ?
    By legolas in forum The Water Cooler
    Replies: 8
    Last Post: 01-27-2012, 11:55 AM
  4. Is it possible (lotus notes)VBA
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2010, 05:56 AM
  5. Excel and Lotus Notes
    By jenniferohearn in forum Excel General
    Replies: 1
    Last Post: 07-22-2009, 05:10 PM
  6. [SOLVED] Lotus Notes Task
    By BerkshireGuy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2006, 10:35 AM
  7. Excel with Lotus Notes
    By matpj in forum Excel General
    Replies: 0
    Last Post: 01-16-2006, 06:19 AM

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