+ Reply to Thread
Results 1 to 3 of 3

Open XLTM file > Click on Macro button > send as XLSM attachment in a outlook message

  1. #1
    Registered User
    Join Date
    05-06-2013
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    12

    Open XLTM file > Click on Macro button > send as XLSM attachment in a outlook message

    Hi VBA's,

    I originally had an XLSM file with a macro button to send the file as attachment in an outlook message.
    I wish to save this XLSM as a template (XLTM ) but when i did that the sent attachment is without file extension. and i need it to be with XLSM

    Can you please tell me what should be added to the code?


    My send mail VBA code:
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Open XLTM file > Click on Macro button > send as XLSM attachment in a outlook message

    Assuming "TempFilePath & TempFileName & FileExtStr" is the complete folder address and filename and ext.

    your attachment would be something like.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-06-2013
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Open XLTM file > Click on Macro button > send as XLSM attachment in a outlook message

    Thanks for the response but it was easier than expected.
    I replaced this line :
    Please Login or Register  to view this content.
    With this simple line:
    Please Login or Register  to view this content.

+ 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. Macro to click a 'choose file' button on webpage, browse for a local file, and click open
    By Insaintime32 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2016, 04:46 PM
  2. [SOLVED] macro to convert email message to PDF and send as an attachment
    By melody10 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 06-20-2016, 02:18 AM
  3. Email .pdf attachment using Outlook and send formatted message.
    By shawnvon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-02-2014, 03:17 PM
  4. Macro to send an attachment via Outlook from excel
    By dobracik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2014, 04:32 AM
  5. Double Click vs Open XLTM
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-18-2014, 01:06 PM
  6. [SOLVED] Macro to send a pdf attachment via outlook from excel
    By Josiah in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2013, 02:17 PM
  7. [SOLVED] Click button to save as file name --> open message if range is 1
    By debbiesh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2012, 03:05 PM

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