+ Reply to Thread
Results 1 to 5 of 5

VBA - customised email alerts on changes to individual rows in worksheet

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    42

    VBA - customised email alerts on changes to individual rows in worksheet

    Good morning, all!

    I'm just wondering if you could all help me solve a little work-related problem.

    I work as a remote service engineer. The central planning is done on a crappy excel-based Gantt-type arrangement workbook, not a proper chart. This is kept on the company network. My fellow engineers and I travel to places like oil rigs where the networks tend to block the VPN we would use to access the company drives. And when the planners make changes to your schedule, they tend to keep it to themselves!

    So, I've proposed we implement something in VBA to ping an automated email alert to the engineers when their workload is changed, i.e. anything on their row in the sheet is altered.

    I've come up with the attached sheet with code for test purposes. It does vaguely do what's intended, but with the following shortcomings:

    1. It's currently only looking for changes to one row (engineer), not monitoring the entire sheet/roster. There's only two "engineers" in there just now, for test.
    2. It literally creates one email per change. So, if someone in planning put in a job number, changed the fill colour, and put a border around the job duration, three emails would be generated. It would be good if when they were finished the changes and saved the worksheet, the alert could be generated then.

    Please have a look and see what you can do with it. Would be very much appreciate if I can drag the planners almost into the 21st century until we start to use proper planning / projects software!

    Thanks in advance,

    Roy K.

    Edit - I did have my own email addresses listed in the sheet, figured it might make sense to remove them.
    Attached Files Attached Files
    Last edited by creationracing; 08-16-2019 at 05:04 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: VBA - customised email alerts on changes to individual rows in worksheet

    Try this, untested:
    Please Login or Register  to view this content.
    And FYI, even if you deleted your email address, it still can be found in the code
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    01-29-2007
    Posts
    42

    Re: VBA - customised email alerts on changes to individual rows in worksheet

    Paul - thanks for coming back with that! And good spot on the email... oops!

    Also, your code is chucking a "Next without For" error. What have I done wrong?

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: VBA - customised email alerts on changes to individual rows in worksheet

    Green is For+Next, Red is With+End with
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-29-2007
    Posts
    42

    Re: VBA - customised email alerts on changes to individual rows in worksheet

    Thanks for that Paul. Copy>Pasting that lot stops the error.

    However, it ended up causing "Remote call failed" errors, and Outlook would hang. So I've removed the .Send which has stopped that happening.

    However, making a change in one row causes two emails to be opened to the two different "engineers". When making a change in a row, only the engineer in that row should get an email. Any ideas?

    Ta in advance!

+ 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. Create hyperlink to email worksheet to individual
    By tmac1985 in forum Excel General
    Replies: 1
    Last Post: 11-29-2017, 01:22 PM
  2. individual worksheet email notification script needed
    By TallyGD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2016, 10:57 AM
  3. Sending Individual Worksheet via Email (Outlook) with Required Cells
    By JCRoessler14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2016, 01:40 PM
  4. Macro to send individual tabs from a worksheet to different email address based on in
    By mikeyexcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-30-2014, 07:46 PM
  5. Replies: 11
    Last Post: 05-26-2013, 07:45 AM
  6. Replies: 1
    Last Post: 04-30-2013, 04:38 AM
  7. Want to send individual tabs of a worksheet to different email addresses
    By billbirch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2013, 07:38 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