Consulting

Results 1 to 5 of 5

Thread: Solved: VBA to auto email report

  1. #1
    VBAX Tutor jo15765's Avatar
    Joined
    Oct 2011
    Posts
    281
    Location

    Solved: VBA to auto email report

    I have a excel form that I push a button on the form, and it opens a new workbook, calls it "New", runs a DAO import of data, and saves "New" with the imported data. I then manually right click the file, say send to, email recipient...etc etc. Is there a way for me to automatically place the "New" file in an attachment in outlook 2007?

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3
    VBAX Tutor jo15765's Avatar
    Joined
    Oct 2011
    Posts
    281
    Location
    Quote Originally Posted by Simon Lloyd
    Cool, thank you for the link! I will give it a whirl, and see if I can get it functioning perfectly

  4. #4
    VBAX Tutor jo15765's Avatar
    Joined
    Oct 2011
    Posts
    281
    Location
    That code is great!! Now I have one other VB question related to the
    [vba]
    .Body
    [/vba]

    statement in the code. How can I add a carraige return between the lines I want added in the statement?

  5. #5
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Use[VBA]& vblf[/VBA]
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

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