+ Reply to Thread
Results 1 to 6 of 6

Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro code

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Smile Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro code

    Hello all,

    I have a macro written out to send the active workbook to a specific email address.
    However, I do not want my client to open the workbook and see all the macros that are there nor do I want him/her to run the macro but rather I want him/her to open the workbook in regular excel format (xlsx or xls), and, at the same time I want to keep the original macro enabled worksheet (xlsm)in my hard drive. So basically what I want to do is add a code to the email code that I already have and that it will copy the macro enabled workbook (xlsm) to the email in regular excel format (xlsx or xls).
    (If I am not mistaken I think there is a code that can convert the xlsm workbook to an xls workbook, temporarily save it in the hard drive, send it via email and then kill the file right away.)
    If anyone can help me out it would be greatly appreciated.


    Please Login or Register  to view this content.
    Last edited by kosherboy; 11-29-2013 at 01:34 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro

    Hi kosherboy

    Welcome to the Forum!!

    Try this Code (modified from Ron DeBruin )
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro

    Wow! Perfect! On the ball! worked like magic!
    This site is great. Thanks for welcoming me. I hope to learn a lot from this site as I use excel the entire day.
    Thank you again!

  4. #4
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro

    I know this sounds silly but how do I mark this thread as solved?

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro

    You're welcome...glad I could help.

    If this resolves your issue please mark your Thread as SOLVED.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Send via email macro enabled wrksheet (xlsm) as regular wrksheet (xlsx) using a macro

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Spread hours out evenly (or close to) over employees executing tasks in a WBS.
    By jbsitler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2012, 06:00 PM
  2. Macro for executing multiple sorting from a list
    By Bastard82 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2011, 10:20 AM
  3. stopwatch macro for multiple tasks
    By blumbergh12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2010, 02:56 PM
  4. Executing a Macro Across Multiple Worksheets
    By rdgreen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2008, 11:31 PM
  5. [SOLVED] Executing multiple queries through a macro
    By Sharon in forum Excel General
    Replies: 0
    Last Post: 03-31-2005, 09:06 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