+ Reply to Thread
Results 1 to 4 of 4

Find email address & send active sheet.

  1. #1
    Registered User
    Join Date
    06-12-2010
    Location
    Cobar, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Find email address & send active sheet.

    Hi,

    I'm using to code below to find an email address in cell G36 then send email. The problem is that it is sending an email to everyone in G36 for all the other sheets aswell. I only want it to send an email for the active sheet, the one I'm looking at. Help... thanks.

    Please Login or Register  to view this content.
    Last edited by pike; 06-12-2010 at 08:33 PM. Reason: added code tags to newbie post

  2. #2
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Find email address & send active sheet.

    Your code is checking all sheets in the book because that what it is set up to do. You need to remove refrences to the workbook and replace with activesheet.
    Try something like this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-12-2010
    Location
    Cobar, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Find email address & send active sheet.

    No good. Error with the .SendMail?

  4. #4
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Find email address & send active sheet.

    try this
    Please Login or Register  to view this content.
    Last edited by scottwhittaker2333; 06-14-2010 at 02:10 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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