+ Reply to Thread
Results 1 to 2 of 2

Newbie to VBA - question about emailing workbooks based on workbook name

  1. #1
    Registered User
    Join Date
    09-23-2017
    Location
    Pennsylvania
    MS-Off Ver
    MS OFFICE 365
    Posts
    1

    Newbie to VBA - question about emailing workbooks based on workbook name

    I'd like to know if there is a way to email a folder full of individual workbooks to each recipient based on the workbook name. EG., I use VBA to parse a large sheet based on the vcol (a name). This then sums up the worksheet into a summary sheet and the detailed sheet in a single workbook which is named based on the vcol. I'd like to know if there's something I can use or add to my existing vba to allow it to email said workbook to the person it's name for.

    I have no clue how to build a database with their emails, though I do have a xlsx with everyone's name and email on it (their name being like it would be in my original worksheets) so it SHOULD reference. I just don't know how to make it reference. I'll attach my VBA here so you can see what I'm starting with.
    Please Login or Register  to view this content.
    Any help would be greatly appreciated. I'm using gmail now, but I could get my gmail to sync with outlook if need be. And please, dumb it down like you're talking to a kid... I had quite a bit of help writing the above. I made so many mistakes it was ridiculous. The main workbook I work with is usually between 35-50kb, depending on the month.
    Last edited by srhstrby; 09-23-2017 at 01:19 PM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Newbie to VBA - question about emailing workbooks based on workbook name

    Welcome to the forum!

    It is fairly simple using the Outlook object. One can use CDO to so it as well. The code at the end is a short example using Outlook. See Ron's site for more complex examples. In the example, .Attachments.Add "yourfullpathfilename.ext here" is used.

    If you need more specific help, try making a simple obfuscated file and attach it. Explain what you expect to happen. Click Go Advanced button in lower right of a reply and click the Manage Attachments hyperlink below the reply box to browse and upload the example.

    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. Links between workbooks and emailing workbook
    By LenB in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  2. Links between workbooks and emailing workbook
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. Links between workbooks and emailing workbook
    By LenB in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 06:05 AM
  4. Links between workbooks and emailing workbook
    By LenB in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Links between workbooks and emailing workbook
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] Links between workbooks and emailing workbook
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Links between workbooks and emailing workbook
    By Leslie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] Links between workbooks and emailing workbook
    By Leslie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2005, 09:05 AM

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