Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Visual Basic Mail Question

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 ", "Subject was
here"
End Sub

Can anyone shed anylight on my problem?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Visual Basic Mail Question

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.

--
Regards,
Tom Ogilvy


"Rex Gray" wrote in message
...
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 ", "Subject was
here"
End Sub

Can anyone shed anylight on my problem?

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual basic 6.5 question using combo box and call procedure. TAS Excel Discussion (Misc queries) 7 April 15th 09 06:46 PM
Visual Basic Question ALEX Excel Worksheet Functions 3 February 6th 07 11:46 AM
visual basic coding question stevie888 Excel Discussion (Misc queries) 0 November 26th 06 10:24 PM
Visual Basic Question Peter W Soady \(UK\) Excel Discussion (Misc queries) 1 October 25th 06 06:26 PM
Visual Basic Question Craig Excel Programming 4 December 4th 03 09:36 PM


All times are GMT +1. The time now is 09:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"