+ Reply to Thread
Results 1 to 6 of 6

VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

  1. #1
    Registered User
    Join Date
    04-23-2020
    Location
    Canada
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    32

    VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

    Hello,

    I have an excel file which includes multiple sheets ( say 40 sheets with different names). As a regular bi weekly task, I am required to send every sheet to a particular email id ( means take 40 sheets, save every sheet as per the name of that sheet and send it out to a different email ids. So net, i end up saving 40 files and sending 40 different emails with one attachment in each email). PS : All the 40 email ids are written in one of the sheets in the file.

    Is there a VBA code which can help me in cracking this? Appreciate any help on this. Please let me know for any further details on this.

    Thanks!

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

    Hi, I suggest you search the different threads, there are (I may say hundreds) with similar questions, all you will need to do is edit the VBA code a little and you'll get your task done.
    The first one will probably take some time to practice edit and learn and then ... just a click of a button.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    04-23-2020
    Location
    Canada
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    32

    Re: VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

    Thanks for the suggestion. I found one code in previous posts which fits my requirement.

    However, when i am using the below code : I am getting the following error - "Run Time error '429' , ActiveX component can't create object" on the following line of code
    Please Login or Register  to view this content.

    Below is the overall code i using for this

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

    Do you have Outlook Installed?

  5. #5
    Registered User
    Join Date
    04-23-2020
    Location
    Canada
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    32

    Re: VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

    Yes. I do. and i checked all my libraries are checked in outlook and excel as well.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA to save a sheet as a new workbook and email (using outlook) to a certain email id

    You're probably still missing the reference under Tools References in the VBA project for the Outlook Library
    Attached Images Attached Images

+ 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. Replies: 3
    Last Post: 03-11-2019, 05:31 PM
  2. [SOLVED] Save as PDF and email in outlook
    By antmoss3 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-21-2019, 08:40 AM
  3. Save workbook, attach it to outlook email, close workbook?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 11:52 PM
  4. Save one sheet from a workbook, and also send that one sheet via email.
    By davidmcdavidson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2013, 09:22 AM
  5. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  6. [SOLVED] Email on sheet from a workbook through outlook
    By dhes5555 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-29-2012, 12:35 PM
  7. Copy single sheet into new workbook and email it in outlook
    By ravergirl7216 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2010, 11:30 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