+ Reply to Thread
Results 1 to 2 of 2

VBA Email won't send active file

  1. #1
    Registered User
    Join Date
    03-14-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    VBA Email won't send active file

    Hi,

    I have a macro that sends an email with text in the subject and body. The excel file itself is a form that users will use to input information then send to another email address. The file is saved as a blank template on a local drive so that different people can access it at any time. For this reason, I can't have them saving over the template. I'd like them to fill the form in then send it via a button with the macro below. The issue I'm having is that when they send the form, it doesn't send with the information they've just entered. Instead, it sends the saved excel file which is a blank template. Does anyone know of a way to alter the macro below so that it sends the active workbook rather than the saved workbook which is blank?

    cheers,
    jd

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: VBA Email won't send active file

    It probobly doesn't send it with the information they just entered becose this is a template and it has nothing in it untill you save the file you're working in.
    Maby add to the send button so that it saves the file somewhere in the comp then attaches it and deletes the file from the comp.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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