Hello,
I have two macro's. One called SendEmail and one called Sendmassemail. In Sendmassemail, I would like to call SendEmail, but am getting an error 'Expected Variable or Procedure, not module'.
Here's my code
I checked the name of my module and it's the same. Am I calling this incorrectly?
Joe
I have two macro's. One called SendEmail and one called Sendmassemail. In Sendmassemail, I would like to call SendEmail, but am getting an error 'Expected Variable or Procedure, not module'.
Here's my code
Sub Sendmassemail()
row_number = 1
Do
DoEvents
row_number = row_number + 1
Call SendEmail(Sheet1.Range("A" & row_number), "This is a test e-mail", Sheet1.Range("J2"))
lastRow = Range("A1:A").End(xlUp).Row + 1
Loop Until lastRow
End Sub
I checked the name of my module and it's the same. Am I calling this incorrectly?
Joe