Originally Posted by
Gbrown92
Dammy,
Thanks for having a crack at this - much appreciated. Please excuse my lack of VBA skills here (ie I may be doing something stupid).
When I enter that code as a Macro in Excel, it immediately highlights the following lines of code in red:
Dim Subject,
Send_From,
Dim Mail_Object,
Dim Rowcount,
Attempting to run the macro gives the following error:
Compile Error: Syntax Error
By removing the commas at the end of the lines, the error will change to Compile Error: Sub or Function Not Defined on the line of code Body As String.
By changing this to DIM Body As String, I was able to get the macro to run to the line of code Mail_Single As Variant, where the error Compile Error: Statement invalid outside Type Block occurred.
Not entirely sure what I was doing by making these changes, just thought I'd play around with it to see what I can do myself.
Looking forward to any help that anybody can provide to take this forward.
Thanks,
Gerry
I changed a few things that will hopefully fix the problems
Bookmarks