Object Variable or with Block Variable Not Set - Error

%3CLINGO-SUB%20id%3D%22lingo-sub-1096713%22%20slang%3D%22en-US%22%3EObject%20Variable%20or%20with%20Block%20Variable%20Not%20Set%20-%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1096713%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUntil%20recently%20the%20below%20code%20was%20working%20fine%2C%20however%20when%20i%20try%20to%20run%20the%20macro%20now%20i%20encounter%20the%20following%20error%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERun-time%2091%3C%2FP%3E%3CP%3EObject%20Variable%20or%20With%20Blcok%20Variable%20Not%20Set%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20context%20the%20macro%20was%20taken%20from%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.rondebruin.nl%2Fwin%2Fs1%2Foutlook%2Fbmail8.htm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.rondebruin.nl%2Fwin%2Fs1%2Foutlook%2Fbmail8.htm%3C%2FA%3E%26nbsp%3Band%20edited%20for%20the%20purpose%20of%20being%20able%20to%20send%20emails%20directly%20from%20excel%20with%20relevant%20important%20information%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20not%20changed%20the%20code%20or%20the%20format%2C%20however%20i%20did%20have%20a%20security%20update%20on%20my%20laptop%20not%20long%20ago%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20running%20on%20O365%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20help%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERichard%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESub%20Send_Teams_Without_Coaches_Attachment_1()%3C%2FP%3E%3CP%3EDim%20OutApp%20As%20Object%3CBR%20%2F%3EDim%20OutMail%20As%20Object%3CBR%20%2F%3EDim%20rng%20As%20Range%3CBR%20%2F%3EDim%20Ash%20As%20Worksheet%3CBR%20%2F%3EDim%20Cws%20As%20Worksheet%3CBR%20%2F%3EDim%20Rcount%20As%20Long%3CBR%20%2F%3EDim%20Rnum%20As%20Long%3CBR%20%2F%3EDim%20FilterRange%20As%20Range%3CBR%20%2F%3EDim%20FieldNum%20As%20Integer%3CBR%20%2F%3EDim%20mailAddress%20As%20String%3CBR%20%2F%3EDim%20NewWB%20As%20Workbook%3CBR%20%2F%3EDim%20TempFilePath%20As%20String%3CBR%20%2F%3EDim%20TempFileName%20As%20String%3CBR%20%2F%3EDim%20FileExtStr%20As%20String%3CBR%20%2F%3EDim%20FileFormatNum%20As%20Long%3C%2FP%3E%3CP%3EOn%20Error%20GoTo%20cleanup%3CBR%20%2F%3ESet%20OutApp%20%3D%20CreateObject(%22Outlook.Application%22)%3C%2FP%3E%3CP%3EWith%20Application%3CBR%20%2F%3E.EnableEvents%20%3D%20False%3CBR%20%2F%3E.ScreenUpdating%20%3D%20False%3CBR%20%2F%3EEnd%20With%3C%2FP%3E%3CP%3E'Set%20filter%20sheet%2C%20you%20can%20also%20use%20Sheets(%22MySheet%22)%3CBR%20%2F%3ESet%20Ash%20%3D%20(Worksheet)%3C%2FP%3E%3CP%3E'Set%20filter%20range%20and%20filter%20column%20(column%20with%20names)%3CBR%20%2F%3ESet%20FilterRange%20%3D%20Ash.Range(%22A1%3AU%22%20%26amp%3B%20Ash.Rows.Count)%3CBR%20%2F%3EFieldNum%20%3D%201%20'Filter%20column%20%3D%20A%20because%20the%20filter%20range%20start%20in%20column%20A%3C%2FP%3E%3CP%3E'Add%20a%20worksheet%20for%20the%20unique%20list%20and%20copy%20the%20unique%20list%20in%20A1%3CBR%20%2F%3ESet%20Cws%20%3D%20Worksheets.Add%3CBR%20%2F%3EFilterRange.Columns(FieldNum).AdvancedFilter%20_%3CBR%20%2F%3EAction%3A%3DxlFilterCopy%2C%20_%3CBR%20%2F%3ECopyToRange%3A%3DCws.Range(%22A1%22)%2C%20_%3CBR%20%2F%3ECriteriaRange%3A%3D%22%22%2C%20Unique%3A%3DTrue%3C%2FP%3E%3CP%3E'Count%20of%20the%20unique%20values%20%2B%20the%20header%20cell%3CBR%20%2F%3ERcount%20%3D%20Application.WorksheetFunction.CountA(Cws.Columns(1))%3C%2FP%3E%3CP%3E'If%20there%20are%20unique%20values%20start%20the%20loop%3CBR%20%2F%3EIf%20Rcount%20%26gt%3B%3D%202%20Then%3CBR%20%2F%3EFor%20Rnum%20%3D%202%20To%20Rcount%3C%2FP%3E%3CP%3E'Look%20for%20the%20mail%20address%20in%20the%20MailInfo%20worksheet%3CBR%20%2F%3EmailAddress%20%3D%20%22%22%3CBR%20%2F%3EOn%20Error%20Resume%20Next%3CBR%20%2F%3EmailAddress%20%3D%20Application.WorksheetFunction.%20_%3CBR%20%2F%3EVLookup(Cws.Cells(Rnum%2C%201).Value%2C%20_%3CBR%20%2F%3EWorksheets(%22Mailinfo%22).Range(%22A1%3AB%22%20%26amp%3B%20_%3CBR%20%2F%3EWorksheets(%22Mailinfo%22).Rows.Count)%2C%202%2C%20False)%3CBR%20%2F%3EOn%20Error%20GoTo%200%3C%2FP%3E%3CP%3EIf%20mailAddress%20%26lt%3B%26gt%3B%20%22%22%20Then%3C%2FP%3E%3CP%3E'Filter%20the%20FilterRange%20on%20the%20FieldNum%20column%3CBR%20%2F%3EFilterRange.AutoFilter%20Field%3A%3DFieldNum%2C%20_%3CBR%20%2F%3ECriteria1%3A%3DCws.Cells(Rnum%2C%201).Value%3C%2FP%3E%3CP%3E'Copy%20the%20visible%20data%20in%20a%20new%20workbook%3CBR%20%2F%3EWith%20Ash.AutoFilter.Range%3CBR%20%2F%3EOn%20Error%20Resume%20Next%3CBR%20%2F%3ESet%20rng%20%3D%20.SpecialCells(xlCellTypeVisible)%3CBR%20%2F%3EOn%20Error%20GoTo%200%3CBR%20%2F%3EEnd%20With%3C%2FP%3E%3CP%3ESet%20NewWB%20%3D%20Workbooks.Add(xlWBATWorksheet)%3C%2FP%3E%3CP%3Erng.Copy%3CBR%20%2F%3EWith%20NewWB.Sheets(1)%3CBR%20%2F%3E.Cells(1).PasteSpecial%20Paste%3A%3D8%3CBR%20%2F%3E.Cells(1).PasteSpecial%20Paste%3A%3DxlPasteValues%3CBR%20%2F%3E.Cells(1).PasteSpecial%20Paste%3A%3DxlPasteFormats%3CBR%20%2F%3E.Cells(1).Select%3CBR%20%2F%3EApplication.CutCopyMode%20%3D%20False%3CBR%20%2F%3EEnd%20With%3C%2FP%3E%3CP%3E'Create%20a%20file%20name%3CBR%20%2F%3ETempFilePath%20%3D%20Environ%24(%22temp%22)%20%26amp%3B%20%22%5C%22%3CBR%20%2F%3ETempFileName%20%3D%20%22Your%20data%20of%20%22%20%26amp%3B%20Ash.Parent.Name%20_%3CBR%20%2F%3E%26amp%3B%20%22%20%22%20%26amp%3B%20Format(Now%2C%20%22dd-mmm-yy%20h-mm-ss%22)%3C%2FP%3E%3CP%3EIf%20Val(Application.Version)%20%26lt%3B%2012%20Then%3CBR%20%2F%3E'You%20use%20Excel%2097-2003%3CBR%20%2F%3EFileExtStr%20%3D%20%22.xls%22%3A%20FileFormatNum%20%3D%20-4143%3CBR%20%2F%3EElse%3CBR%20%2F%3E'You%20use%20Excel%202007-2016%3CBR%20%2F%3EFileExtStr%20%3D%20%22.xlsx%22%3A%20FileFormatNum%20%3D%2051%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%3CP%3E'Save%2C%20Mail%2C%20Close%20and%20Delete%20the%20file%3CBR%20%2F%3ESet%20OutMail%20%3D%20OutApp.CreateItem(0)%3C%2FP%3E%3CP%3EWith%20NewWB%3CBR%20%2F%3E.SaveAs%20TempFilePath%20%26amp%3B%20TempFileName%20_%3CBR%20%2F%3E%26amp%3B%20FileExtStr%2C%20FileFormat%3A%3DFileFormatNum%3CBR%20%2F%3EOn%20Error%20Resume%20Next%3CBR%20%2F%3EWith%20OutMail%3CBR%20%2F%3E.SentOnBehalfOfName%20%3D%20%22%22%3CBR%20%2F%3E.To%20%3D%20mailAddress%3CBR%20%2F%3E.ReadReceiptRequested%20%3D%20True%3CBR%20%2F%3E.Subject%20%3D%20%22Teams%20Without%20Qualified%20Coaches%20-%20Charter%20Standard%20Health%20Check%22%3CBR%20%2F%3E.Attachments.Add%20NewWB.FullName%3CBR%20%2F%3E.body%20%3D%20%22Hi%20There%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22As%20you%20are%20aware%20it%20is%20currently%20Charter%20Standard%20Health%20Check%20season%20until%20the%20end%20of%20January%202020%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22To%20pass%20your%20Health%20Check%20you%20are%20required%20to%20still%20meet%20your%20Charter%20Standard%20qualifying%20criteria%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22With%20this%20in%20mind%20we%20have%20identified%20your%20club%20has%20the%20following%20teams%20on%20the%20attached%20without%20a%20named%20FA%20qualified%20coach%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22If%20you%20have%20a%20qualified%20coach%20assigned%20to%20these%20teams%20please%20can%20you%20log%20into%20the%20Whole%20Game%20System%20and%20update%20the%20record%20accordingly%2C%20or%20alternatively%20read%20on%20as%20to%20how%20Birmingham%20County%20FA%20can%20help%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22The%20County%20FA%20have%20funding%20available%20to%20support%20FA%20Level%201%20qualifications%20for%20your%20club%2C%20if%20you%20are%20interested%20please%20follow%20the%20below%206%20steps%3B%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Step%201%3A%20Club%20secretaries%20will%20need%20to%20identify%201%20individual%20per%20team%20who%20will%20be%20able%20to%20access%20the%20funding%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Step%202%3A%20Club%20secretaries%20MUST%20ensure%20that%20the%20individuals%20are%20uploaded%20to%20the%20Whole%20Game%20System%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Step%203%3A%20The%20identified%20individual%20will%20need%20to%20locate%20a%20course%20via%20%3CA%20href%3D%22http%3A%2F%2Fwww.birminghamfa.com%2Fcoaches%2Fdevelopment-and-courses%2Ffa-level-1-in-coaching-football%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.birminghamfa.com%2Fcoaches%2Fdevelopment-and-courses%2Ffa-level-1-in-coaching-football%3C%2FA%3E%20and%20inform%20their%20secretary%20of%20the%20start%20and%20end%20date%20along%20with%20the%20course%20venue%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Step%204%3A%20Club%20secretaries%20should%20add%20the%20relevant%20details%20for%20each%20eligible%20individual%20to%20the%20following%20%3CA%20href%3D%22https%3A%2F%2Fapp.smartsheet.com%2Fb%2Fform%2F477a4839810447fa85ae5fe6ca778ec%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapp.smartsheet.com%2Fb%2Fform%2F477a4839810447fa85ae5fe6ca778ec%3C%2FA%3E%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Step%205%3A%20On%20receipt%20of%20the%20completed%20information%20secretaries%20will%20be%20issued%20a%20discount%20code%20specifically%20for%20the%20named%20individuals%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Step%206%3A%20Named%20individuals%20can%20now%20book%20their%20chosen%20course%20using%20the%20code%20supplied.%20Please%20note%20that%20the%20code%20is%20valid%20for%201%20month%20only%20and%20cannot%20be%20reissued%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Once%20all%20teams%20have%20the%20correct%20qualifications%20in%20place%20please%20log%20in%20to%20the%20Whole%20Game%20System%20to%20complete%20your%20Health%20Check%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Click%20the%20attached%20link%20to%20watch%20the%20How%20to%20Guide%20%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2FDB7xLoBNnUE%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyoutu.be%2FDB7xLoBNnUE%3C%2FA%3E%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22%20%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22For%20support%20please%20contact%20%22%22%20%26amp%3B%20vbNewLine%20%26amp%3B%20_%3CBR%20%2F%3E%22Kind%20Regards%2C%20Birmingham%20County%20FA%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E.display%20'Or%20use%20Send%3CBR%20%2F%3EEnd%20With%3CBR%20%2F%3EOn%20Error%20GoTo%200%3CBR%20%2F%3E.Close%20savechanges%3A%3DFalse%3CBR%20%2F%3EEnd%20With%3C%2FP%3E%3CP%3ESet%20OutMail%20%3D%20Nothing%3CBR%20%2F%3EKill%20TempFilePath%20%26amp%3B%20TempFileName%20%26amp%3B%20FileExtStr%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%3CP%3E'Close%20AutoFilter%3CBR%20%2F%3EAsh.AutoFilterMode%20%3D%20False%3C%2FP%3E%3CP%3ENext%20Rnum%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%3CP%3Ecleanup%3A%3CBR%20%2F%3EOn%20Error%20Resume%20Next%3CBR%20%2F%3ESet%20OutApp%20%3D%20Nothing%3CBR%20%2F%3EApplication.DisplayAlerts%20%3D%20False%3CBR%20%2F%3ECws.Delete%3CBR%20%2F%3EApplication.DisplayAlerts%20%3D%20True%3C%2FP%3E%3CP%3EWith%20Application%3CBR%20%2F%3E.EnableEvents%20%3D%20True%3CBR%20%2F%3E.ScreenUpdating%20%3D%20True%3CBR%20%2F%3EEnd%20With%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1096713%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

Hi,

 

Until recently the below code was working fine, however when i try to run the macro now i encounter the following error; 

 

Run-time 91

Object Variable or With Blcok Variable Not Set

 

For context the macro was taken from https://www.rondebruin.nl/win/s1/outlook/bmail8.htm and edited for the purpose of being able to send emails directly from excel with relevant important information

 

I have not changed the code or the format, however i did have a security update on my laptop not long ago

 

I am running on O365

 

Can you help?

 

Richard

 

 

Sub Send_Teams_Without_Coaches_Attachment_1()

Dim OutApp As Object
Dim OutMail As Object
Dim rng As Range
Dim Ash As Worksheet
Dim Cws As Worksheet
Dim Rcount As Long
Dim Rnum As Long
Dim FilterRange As Range
Dim FieldNum As Integer
Dim mailAddress As String
Dim NewWB As Workbook
Dim TempFilePath As String
Dim TempFileName As String
Dim FileExtStr As String
Dim FileFormatNum As Long

On Error GoTo cleanup
Set OutApp = CreateObject("Outlook.Application")

With Application
.EnableEvents = False
.ScreenUpdating = False
End With

'Set filter sheet, you can also use Sheets("MySheet")
Set Ash = (Worksheet)

'Set filter range and filter column (column with names)
Set FilterRange = Ash.Range("A1:U" & Ash.Rows.Count)
FieldNum = 1 'Filter column = A because the filter range start in column A

'Add a worksheet for the unique list and copy the unique list in A1
Set Cws = Worksheets.Add
FilterRange.Columns(FieldNum).AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=Cws.Range("A1"), _
CriteriaRange:="", Unique:=True

'Count of the unique values + the header cell
Rcount = Application.WorksheetFunction.CountA(Cws.Columns(1))

'If there are unique values start the loop
If Rcount >= 2 Then
For Rnum = 2 To Rcount

'Look for the mail address in the MailInfo worksheet
mailAddress = ""
On Error Resume Next
mailAddress = Application.WorksheetFunction. _
VLookup(Cws.Cells(Rnum, 1).Value, _
Worksheets("Mailinfo").Range("A1:B" & _
Worksheets("Mailinfo").Rows.Count), 2, False)
On Error GoTo 0

If mailAddress <> "" Then

'Filter the FilterRange on the FieldNum column
FilterRange.AutoFilter Field:=FieldNum, _
Criteria1:=Cws.Cells(Rnum, 1).Value

'Copy the visible data in a new workbook
With Ash.AutoFilter.Range
On Error Resume Next
Set rng = .SpecialCells(xlCellTypeVisible)
On Error GoTo 0
End With

Set NewWB = Workbooks.Add(xlWBATWorksheet)

rng.Copy
With NewWB.Sheets(1)
.Cells(1).PasteSpecial Paste:=8
.Cells(1).PasteSpecial Paste:=xlPasteValues
.Cells(1).PasteSpecial Paste:=xlPasteFormats
.Cells(1).Select
Application.CutCopyMode = False
End With

'Create a file name
TempFilePath = Environ$("temp") & "\"
TempFileName = "Your data of " & Ash.Parent.Name _
& " " & Format(Now, "dd-mmm-yy h-mm-ss")

If Val(Application.Version) < 12 Then
'You use Excel 97-2003
FileExtStr = ".xls": FileFormatNum = -4143
Else
'You use Excel 2007-2016
FileExtStr = ".xlsx": FileFormatNum = 51
End If

'Save, Mail, Close and Delete the file
Set OutMail = OutApp.CreateItem(0)

With NewWB
.SaveAs TempFilePath & TempFileName _
& FileExtStr, FileFormat:=FileFormatNum
On Error Resume Next
With OutMail
.SentOnBehalfOfName = ""
.To = mailAddress
.ReadReceiptRequested = True
.Subject = "Teams Without Qualified Coaches - Charter Standard Health Check"
.Attachments.Add NewWB.FullName
.body = "Hi There" & vbNewLine & _
" " & vbNewLine & _
"As you are aware it is currently Charter Standard Health Check season until the end of January 2020" & vbNewLine & _
" " & vbNewLine & _
"To pass your Health Check you are required to still meet your Charter Standard qualifying criteria" & vbNewLine & _
" " & vbNewLine & _
"With this in mind we have identified your club has the following teams on the attached without a named FA qualified coach" & vbNewLine & _
" " & vbNewLine & _
"If you have a qualified coach assigned to these teams please can you log into the Whole Game System and update the record accordingly, or alternatively read on as to how Birmingham County FA can help" & vbNewLine & _
" " & vbNewLine & _
"The County FA have funding available to support FA Level 1 qualifications for your club, if you are interested please follow the below 6 steps;" & vbNewLine & _
"Step 1: Club secretaries will need to identify 1 individual per team who will be able to access the funding" & vbNewLine & _
"Step 2: Club secretaries MUST ensure that the individuals are uploaded to the Whole Game System" & vbNewLine & _
"Step 3: The identified individual will need to locate a course via http://www.birminghamfa.com/coaches/development-and-courses/fa-level-1-in-coaching-football and inform their secretary of the start and end date along with the course venue" & vbNewLine & _
"Step 4: Club secretaries should add the relevant details for each eligible individual to the following https://app.smartsheet.com/b/form/477a4839810447fa85ae5fe6ca778ec" & vbNewLine & _
"Step 5: On receipt of the completed information secretaries will be issued a discount code specifically for the named individuals" & vbNewLine & _
"Step 6: Named individuals can now book their chosen course using the code supplied. Please note that the code is valid for 1 month only and cannot be reissued" & vbNewLine & _
" " & vbNewLine & _
"Once all teams have the correct qualifications in place please log in to the Whole Game System to complete your Health Check" & vbNewLine & _
" " & vbNewLine & _
"Click the attached link to watch the How to Guide https://youtu.be/DB7xLoBNnUE" & vbNewLine & _
" " & vbNewLine & _
"For support please contact "" & vbNewLine & _
"Kind Regards, Birmingham County FA"


.display 'Or use Send
End With
On Error GoTo 0
.Close savechanges:=False
End With

Set OutMail = Nothing
Kill TempFilePath & TempFileName & FileExtStr
End If

'Close AutoFilter
Ash.AutoFilterMode = False

Next Rnum
End If

cleanup:
On Error Resume Next
Set OutApp = Nothing
Application.DisplayAlerts = False
Cws.Delete
Application.DisplayAlerts = True

With Application
.EnableEvents = True
.ScreenUpdating = True
End With
End Sub

 

This is a How To Guide on completing your FA Charter Standard Annual Health Check ⚽ All Health Checks must be completed by January 31st to maintain your Char...
0 Replies