Visual Basic Mail Question

  • Thread starter Thread starter Rex Gray
  • Start date Start date
R

Rex Gray

I have created a mail macro to automaticly send an excel
spreadsheet to a set email address. The problem I have,
is that the reciepiant recieves two email's instead of
one. I have only the one address listed. Here is a copy
of the code.

Private Sub Image1_Click()
ActiveWorkbook.SendMail "(e-mail address removed)", "Subject was
here"
End Sub

Can anyone shed anylight on my problem?

Thanks
 
Your click event is probably firing twice. Put in a msgbox or something to
check. You might have some type of recursive call to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top