I believe this will accomplish your goal. I am unable to test here because I do not have my system set for a G Drive.
Paste the following into a Regular Module.
Sheet 1 / Range A1 is set to have : Your Email SUBJECT
Sheet 1 / Range A2 is set to have : Your PDF File Name
Both of the above can be changed to a different location (requires slight edit in macro) or
both can be hard coded in macro code and left unchanged after that.
VBA Code:
Option Explicit
Sub sendReminderMail() [I][B]Can this be added to run with the other 3 existing macros using a Call Macro?[/B][/I]
ChDir "G:\DEVEL\Site Inspections\Properties\[I]Amherst NH[/I]\" [B][I]The "Properties" folder in the Site Inspections folder had about 25 properties. Can this draw from the range in "C4" of the form? Amherst NH is just 1 property[/I][/B]
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="G:\DEVEL\Site Inspections\Properties\[I]Amherst NH[/I]\" & ActiveSheet.Range("A2").Value & ".pdf", OpenAfterPublish:=False [B][I]Wherever you have Amherst can that be the range in "C4"[/I][/B]
Dim OutLookApp As Object
Dim OutLookMailItem As Object
Dim myAttachments As Object
Set OutLookApp = CreateObject("Outlook.application")
Set OutLookMailItem = OutLookApp.CreateItem(0)
With OutLookMailItem
.To = "Chris.Cheney@wsdevelopment.com" The email address would need to be from the range in "F6" of the form
.Subject = ActiveSheet.Range("A1").Value
.Body = "Please see attached PDF Document."
.Attachments.Add "G:\DEVEL\Site Inspections\Properties\[B][I]Amherst NH[/I][/B]\" & ActiveSheet.Range("A2").Value & ".pdf" [I][B]This would need to be Range in "C4" [/B][/I]
[B][I]
.Display
End With
Set OutLookMailItem = Nothing
Set OutLookApp = Nothing
End Sub