Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel sheet email

Status
Not open for further replies.

HOMMER

Technical User
Apr 12, 2001
112
US
is there a easy way to have a button on the worksheet, that would (when pressed) mail the worksheet to a mailing list.
 
Private Sub MailingList()
Dim dbs
Dim rst
Dim strRecep
Set dbs = opendatabase("YourDBwithUserList")'Path and file name
Set rst = dbs.openrecordset("YOurUserListtable")
With rst
.movelast
.movefirst
do while not .eof
strRecep = rst.fields("FieldwithEmailAddress").value
ActiveWorkbook.SendMail recipients:=strRecep
.movenext
loop
set rst = nothing
set dbs = nothing
End Sub Tyrone Lumley
augerinn@gte.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top