Auto notify or mail when excel sheet is updated.
Closed
darkxerxes
Posts
4
Registration date
Friday September 20, 2013
Status
Member
Last seen
September 20, 2013
-
Sep 20, 2013 at 11:03 AM
Blocked Profile - Sep 23, 2013 at 09:28 AM
Blocked Profile - Sep 23, 2013 at 09:28 AM
Related:
- Get notification when excel spreadsheet is updated
- What is light in whatsapp notification - Guide
- Email notification when excel spreadsheet is updated - Guide
- Network notification - Guide
- Excel marksheet - Guide
- Excel free download - Download - Spreadsheets
1 response
Have Fun!
THis is what I found out there about lotus notes API
Set objSession = CreateObject("Notes.NotesSession")
Set objMailDB = objSession.GetDatabase("", "")
'Open database if it's not ready
If Not objMailDB.IsOpen Then
objMailDB.OpenMail
End If
Set objMailDoc = objMailDB.CreateDocument
I hope this helps, and I better not be helping any spambot!
THis is what I found out there about lotus notes API
Set objSession = CreateObject("Notes.NotesSession")
Set objMailDB = objSession.GetDatabase("", "")
'Open database if it's not ready
If Not objMailDB.IsOpen Then
objMailDB.OpenMail
End If
Set objMailDoc = objMailDB.CreateDocument
I hope this helps, and I better not be helping any spambot!
Sep 20, 2013 at 02:18 PM
Sep 20, 2013 at 02:26 PM
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
Dim answer As String
answer = MsgBox("This is where you put the text to prompt the user if he wants to save or not", vbYesNo, "here is the title of that box")
If answer = vbNo Then Cancel = True
If answer = vbYes Then
Replace this section right here
'open outlook type stuff
Set OutlookApp = CreateObject("Outlook.Application")
Set OlObjects = OutlookApp.GetNamespace("MAPI")
Set newmsg = OutlookApp.CreateItem(olMailItem)
With this section right here
Set objSession = CreateObject("Notes.NotesSession")
Set objMailDB = objSession.GetDatabase("", "")
'Open database if it's not ready
If Not objMailDB.IsOpen Then
objMailDB.OpenMail
End If
Set objMailDoc = objMailDB.CreateDocument
'add recipients
'newmsg.Recipients.Add ("Name Here")
newmsg.Recipients.Add ("sampleemailaddresshere@email.com")
'add subject
newmsg.Subject = "Subject line of auto email here"
'add body
newmsg.Body = "body of auto email here"
newmsg.Display 'display
newmsg.Send 'send message
'give conformation of sent message
MsgBox "insert confirmation box test here", , "title of confirmation box"
End If
'save the document
'Me.Worksheets.Save
End Sub
When I do this the line "newmsg.recipients.add excel gives a debug code saying object expected"
What am I doing wrong..
Thanks
Sep 20, 2013 at 02:40 PM
objMailDB.
Try that!
Sep 20, 2013 at 05:15 PM
Cancel As Boolean)
Dim answer As String
answer = MsgBox("This is where you put the text to prompt the user if he wants to save or not", vbYesNo, "here is the title of that box")
If answer = vbNo Then Cancel = True
If answer = vbYes Then
'open outlook type stuff
Set objSession = CreateObject("Notes.NotesSession")
Set objMailDB = objSession.GetDatabase("", "")
'Open database if it's not ready
If Not objMailDB.IsOpen Then
objMailDB.OpenMail
End If
Set objMailDoc = objMailDB.CreateDocument
'add recipients
'objMailDB.Recipients.Add ("Name Here")
objMailDB.Recipients.Add ("sampleemailaddresshere@email.com")
'add subject
objMailDB.Subject = "Subject line of auto email here"
'add body
objMailDB.Body = "body of auto email here"
objMailDB.Display 'display
objMailDB.Send 'send message
'give conformation of sent message
MsgBox "insert confirmation box test here", , "title of confirmation box"
End If
'save the document
'Me.Worksheets.Save
End Sub
Its still not working (although I think I misunderstood)
objMailDB.Recipients.Add ("sampleemailaddresshere@email.com") is Yellow on Debug Error 438
object doesn't support this property or method
Sep 23, 2013 at 09:28 AM
Sorry, but I really just wanted to head you in the right direction.
Good Luck.