+ Reply to Thread
Results 1 to 2 of 2

How to convert my macro to send emails automatically

  1. #1
    Valued Forum Contributor
    Join Date
    06-23-2010
    Location
    North West
    MS-Off Ver
    office 2010
    Posts
    355

    How to convert my macro to send emails automatically

    I have attached a sample workbook.
    The workbook already has a macro that can send an email after working out if the date is overdue.
    I have put a button on the screen to help with this, but I would like to remove the button and automate it, however, there is one problem, I haven't a clue how to do it.
    I have looked at so many posts about this I can't remember where I got the initial macro from,( thank you to whoever initially put it together) but I have since made some changes to it regarding how the message displays etc.
    Could someone advise me please? also whilst looking at it, could anyone tell me what i, 15 or i, 16 in the macro means, There isn't anything in column i and I can't work out the relevance of it.
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to convert my macro to send emails automatically

    This will automatically run your macro when you Open the workbook. Put this code in the ThisWorkbook code module.

    Please Login or Register  to view this content.
    .Cells(i, 15) refers to a Cell's (row, column) where i is the row number and 15 is the column number. The i is a variable that will loop from 2 to the last used row. The 15 (in this case) is column O.

+ 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