Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

VBA Code to send a simple message that an Update has been added.

Can anyone help me with the code to send a message to three users that an update has been made to an excel sheet.  All that the email has to contain is:
the three users
Sub.  "and update has been made"
There does not have to be an attachment or anything in the message body.  Thanks!
0
wiggs1006
Asked:
wiggs1006
  • 3
1 Solution
 
mladenoviczCommented:
dim email
set email = createobject("cdo.message")
with email
.to = "someone@domain.com"
.subject = "something"
.from = "someone@domain.com"
.send
end with
0
 
mladenoviczCommented:
dim email
set email = createobject("cdo.message")
with email
.to = "someone@domain.com; someone1@domain.com; someone2@domain.com"
.subject = "something"
.from = "someone@domain.com"
.send
end with
0
 
mladenoviczCommented:
Or if you don't want to use CDO, try this
http://www.developersdomain.com/vb/articles/smtp.htm
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now