Hey!
This forum has been a huge help thus far, and I am coming here again with a potentially tough one. Here's what I would like to do:
When a cell says the word "Active" or "Service Active" it sends my coworker an email letting them know to add it to quick books.
Here is what it looks like: It is a running list of all of our jobs.
it is currently a table:
the 4th column "Status" is the column I am talking about.
When we are awarded a job, we change the status from Bid to Active (or service bid to service active)
I would like this process to automatically send an email straight to our billing manager so they can add it to quickbooks. That's the top priority, often times we are falling behind on billing because she does not know it is ready to be billed.
It needs to at least be able to send her the job number, but
It would be even better if the email could have the "Billing name - Contact email" as well.
Here is what I have:
Sub Mail_small_Text_Outlook()
'For Tips see: Excel Automation - Ron de Bruin
'Working in Office 2000-2016
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "Hey So and so" & vbNewLine & vbNewLine & _
On Error Resume Next
With OutMail
.To = "email"
.CC = ""
.BCC = ""
.Subject = "New Active Job"
.Body = strbody
'You can add a file like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
So that is great, and it works as a button, but I would like that to go off whenever someone changes it from bid to active, or from service bid to service active.
Something to also consider though, is sometimes they add jobs into the spreadsheet that never go to bid, they start off as active, I would also like those jobs to message her.
I am not sure how to go about this?
Do I made a new hidden page in the spread sheet and then somehow have it compare the active jobs with itself to see if anything has changed?
Its not even like I can sort it by job number and do it for only new jobs. For example we are on Job 1540, but job 1480 just became active because it wasn't awarded for months.
or perhaps if we have it talk to file explorer, if a new job is added into the "Active" folder on our server, maybe then it emails her?
or perhaps if it can see if the status has changed? like if it checks it when the file first opens, verse before it closes? I just don't know how to go about this.
I am really not sure if I am over thinking it and there is a nice easy solution.
Thank you for your help!
This forum has been a huge help thus far, and I am coming here again with a potentially tough one. Here's what I would like to do:
When a cell says the word "Active" or "Service Active" it sends my coworker an email letting them know to add it to quick books.
Here is what it looks like: It is a running list of all of our jobs.
it is currently a table:
Job Number | Job address | Job name | STATUS *** | Billing name | Billing address | Contact name | Contact phone number | Contact email |
1500 | 123 job lane | Lights | Bid | john smith | ||||
1501 | 456 Job dr | Camera | Service Bid | joe smith | ||||
1502 | 789 job st | action | Active | Jane smith |
the 4th column "Status" is the column I am talking about.
When we are awarded a job, we change the status from Bid to Active (or service bid to service active)
I would like this process to automatically send an email straight to our billing manager so they can add it to quickbooks. That's the top priority, often times we are falling behind on billing because she does not know it is ready to be billed.
It needs to at least be able to send her the job number, but
It would be even better if the email could have the "Billing name - Contact email" as well.
Here is what I have:
Sub Mail_small_Text_Outlook()
'For Tips see: Excel Automation - Ron de Bruin
'Working in Office 2000-2016
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strbody = "Hey So and so" & vbNewLine & vbNewLine & _
On Error Resume Next
With OutMail
.To = "email"
.CC = ""
.BCC = ""
.Subject = "New Active Job"
.Body = strbody
'You can add a file like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
So that is great, and it works as a button, but I would like that to go off whenever someone changes it from bid to active, or from service bid to service active.
Something to also consider though, is sometimes they add jobs into the spreadsheet that never go to bid, they start off as active, I would also like those jobs to message her.
I am not sure how to go about this?
Do I made a new hidden page in the spread sheet and then somehow have it compare the active jobs with itself to see if anything has changed?
Its not even like I can sort it by job number and do it for only new jobs. For example we are on Job 1540, but job 1480 just became active because it wasn't awarded for months.
or perhaps if we have it talk to file explorer, if a new job is added into the "Active" folder on our server, maybe then it emails her?
or perhaps if it can see if the status has changed? like if it checks it when the file first opens, verse before it closes? I just don't know how to go about this.
I am really not sure if I am over thinking it and there is a nice easy solution.
Thank you for your help!