Create Email using Excel using HYPERLINK: copy and paste

acrosenfeldsmbc

New Member
Joined
Dec 1, 2017
Messages
4
Hello All,

I currently use Lotus Notes.

Currently, the below formula opens an email, and inserts correctly the TO: and the CC part.

=HYPERLINK("mailto:"&JANE&"?cc=Joe@ABC.com&subject=Interest Rates "&TEXT(Today_TradeDate,"mm.dd.yyyy")&"&body=B117:F128","SEND")

In addition to that, I have data that I need to COpy and Paste, Cell A1:B5 into the body of the email, but it does not insert.....
The B117:F128 is where I have the data I want to copy and paste....

The above does not work
Can someone assist pls!
Thank you
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
It would have to be something like this:
Code:
=HYPERLINK("mailto:"&D16&"?cc=Joe@ABC.com&subject=Interest Rates "&TEXT(D17,"mm.dd.yyyy")&"&body="&B117,"SEND")
The B117 needed to be outside the quotes and it can only do a single cell, not a range of cells. I also changed some of your named ranges to cell references for testing. Any fancier than that and I think you'll need mailmerge or VBA.
 
Upvote 0
Thank you PathFinder.

By any chance, would you be able to guide me with a quick vba code?

The range B117:F128, this is data that I insert into the email, and becomes a picture automatically...

Is there a way to automate this?
Thanks very much for your help'
 
Upvote 0
Here is an example, but I have no idea what might need changed for Lotus Notes. This requires loading of the Microsoft Outlook Object Library to work.
Code:
Sub EmailButton()
    Dim OutApp As Object
    Dim OutMail As Object
    
    Set OutApp = CreateObject("Outlook.Application")
    Set OutMail = OutApp.CreateItem(olMailItem)
    
    With OutMail
        .To = Range("A1").Value
        .CC = "Joe@ABC.com"
        .Subject = "Interest Rates " & Format(Range("B2").Value, "mm.dd.yyyy")
        .body = Range("B117")
        .display 'Show the email
    End With

    Set OutMail = Nothing
    Set OutApp = Nothing
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,605
Members
449,038
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top