+ Reply to Thread
Results 1 to 4 of 4

Macro to email individual sheets to employees

  1. #1
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Macro to email individual sheets to employees

    Hi all,

    I have two excel sheets one with 20 sheets with sheet names as school names and another excel file with names of schools with their email address?

    I want to email each school their respective sheet only... How do i compare the school name from one sheet to another and send out the emails?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Macro to email individual sheets to employees

    how familiar are you with vba?

    sheet.name will give you the name of the tab which you can then .find() in the other workbook... maybe something like:

    Please Login or Register  to view this content.
    (untested)
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Registered User
    Join Date
    03-27-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    53

    Re: Macro to email individual sheets to employees

    Thank you so much for ur response.

    Iam fairly new to VBA.

    I have tried the code u provided, made some modifications but iam getting an error at the find method. Also the name of the sheet and the school name differs by a word.For example the name of the sheet in other workbook is "Alamo" and the school name in other workbook is IDEAAlamo

    IDEAAlamo dave@123.org

    So i need a function to compare or contains the sheet name in the school name?? so what function can i use here?

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Macro to email individual sheets to employees

    hmm, i think maybe we have to specify a searchrange within "EmailSheet"

    something like this seems like it should work:
    Please Login or Register  to view this content.
    i thought you could use find on a worksheet but after testing it seems like maybe not... the .find method defaults to searching for the string / value in part of the found range so your Alamo vs. IDEAAlamo issue shouldn't matter... but if there are two schools with the word Alamo in them we'll need to do something to identify which is which. make sense?
    Last edited by simarui; 04-23-2015 at 09:28 AM.

+ 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: 6
    Last Post: 01-30-2014, 06:58 AM
  2. How to create individual sheets from one sheet and email them individually
    By Shoju in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-21-2013, 11:18 AM
  3. Macro to email individual spread sheets
    By lissa843 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2010, 10:38 AM
  4. [SOLVED] Individual calendars for 30 employees
    By YanYan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-11-2005, 06:10 PM
  5. [SOLVED] How do I create individual pie charts for 99 different employees?
    By K. Biscello in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-10-2005, 05:06 PM

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