Hi,
I need help for a Macro to filter data for each unique email Ids and send email as attachment and as well as data content as table.
Please assist.
Hi,
I need help for a Macro to filter data for each unique email Ids and send email as attachment and as well as data content as table.
Please assist.
Could some one help with excel macro.
Function SendMail()
Dim y As String
Dim x As Integer
y = Sheets(1).Range("M1").Value
x = Sheets(1).Range("K1").Value
' Copy the sheet(1)
ThisWorkbook.Sheets(x).Copy
' Send Email
With ActiveWorkbook
.SendMail Recipients:=y, Subject:="test" & Format(Date, "dd/mmm/yy")
.Close SaveChanges:=False
End With
' Subject:=Range("Feuil1!B1").Value & " " & Range("Feuil1!A1").Value
End Function
Last edited by flextera; 07-03-2014 at 03:17 PM.
It does not work for the attached spreadsheet. Could you send me sample.
Could anyone help me with the macro.
Hi, vijanand1279,
just my 2 cents here. Instead of bumping your thread you should consider to alter the description or amend the data in order to supply more information for those who might be able to help (if they only knew what you areasking for).
You could start recording the steps you want to perform with macro recorder to get some basic code. Although the recorder will deliver hard coded ranges you should at least get a basic idea of how the code may look.I need help for a Macro
What does that mean? What should be the attachment? What mail program to work with?send email as attachment
What data? What range? How to handle duplicates in the range if I assume you want the filterd range to be inserted into any mail?as well as data content as table
I wonder what you have managed to achieve so far, no macro code has been posted by you.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
one way is
-hide duplicates, copy the unique email addresses to sheet2, unhide the duplicates and then send email to addresses from column D (sheet2).
and yes, Holger is right regarding the attachment.
Regards, John55
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
...enjoy -funny parrots-
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks