Rename email attachement file - InfoPath Dev
in

InfoPath Dev

Rename email attachement file

Last post 02-22-2007 05:00 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-22-2007 02:17 AM

    Rename email attachement file

    Hello,
    I'm Checco from Italy,
    I'm sorry for my "terrible" english, I hope you understand me!!!

    This is my code to generate an Outlook email with an attachement file.
    I'd like to rename this file, but not the original file name in my coputer, I want to rename only the attachements file,
    is it possible?


    Set objOutlook = CreateObject("Outlook.Application")
    Set objOutlookMsg = objOutlook.CreateItem(0)
    With objOutlookMsg
    ....
    ....
    ....

    frmSavePath = "xxx.txt"
    Set objOutlookAttach = .Attachments.Add(frmSavePath)

    End With


    Thank you,
    Checco.
  • 02-22-2007 05:00 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Rename email attachement file

    Hi Checco,

    Check out this link,
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3339
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.