billyheanue
Board Regular
- Joined
- Jul 13, 2015
- Messages
- 109
Hi all,
I'm hoping someone with some VB skills can take a gander at my code, and help me get these emails to send with an excel attachment on them.
Thank you!
Bill
I'm hoping someone with some VB skills can take a gander at my code, and help me get these emails to send with an excel attachment on them.
Code:
Sub vendorRep_massemail()
row_number = 1
Do
DoEvents
row_number = row_number + 1
Dim infoprompt As String
Dim firstname As String
Dim companyname As String
firstname = Sheet2.Range("B" & row_number)
infoprompt = Sheet2.Range("Q2")
companyname = Sheet2.Range("E" & row_number)
infoprompt = Replace(infoprompt, "replace_name_here", firstname)
infoprompt = Replace(infoprompt, "company_replace", companyname)
'How do I get the emails to send with a "RFI" excel sheet attached?
'For example, this sheet would be saved at the location C:\test.xlsx on my computer
Call SendEmail(Sheet1.Range("A" & row_number), "Action Required: Automated Ordering on Behalf of Steward Central Purchasing", infoprompt)
Loop Until row_number = 10 'how do i make this so it loops until the list in col. A ends?
End Sub
Thank you!
Bill