Outlook item link

Status
Not open for further replies.

Gfm

New Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
I have a procedure in Outlook VBA to create a link.

Sub ItemLink2Clipboard()
Dim URL As String
Dim DataToSave As New DataObject
Dim mySel As Outlook.Selection
Dim myItem As Object
Set mySel = Application.ActiveWindow.Selection
Set myItem = mySel(1)
URL = URL & "Outlook:" & myItem.EntryID
DataToSave.SetText URL
DataToSave.PutInClipboard
End Sub

Then in OneNote i paste the Content of the clipboard and I get for instance a Hyperlink looking like:
Outlook:00000000268CCAB90266E1489A47A7509148E3A407007F720E9B044BF04DAA23945ED50C8AC300000000010C00007F720E9B044BF04DAA23945ED50C8AC300005A8DEBFF0000

In OneNote i can then modify the Hyperlink to present the same link as e.g.
Test
I would like to put the Hyperlink into the clipboard complete with the link and the subject as the text to show.

Can someone please help me.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
G Outlook Contact Item.Restrict where FullName is NULL Outlook VBA and Custom Forms 3
H Outlook 365 O365 outlook calendar item editing Using Outlook 1
talla Can't open Outlook Item. Using Outlook 0
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
T outlook.com opens with "item not found" Using Outlook 1
M Shortcut to another outlook item Using Outlook 0
M VBA to change flag status in outlook contact item Outlook VBA and Custom Forms 3
T outlook 2010 mail item count doesnt match display Outlook VBA and Custom Forms 3
Diane Poremsky Display the Created Date field of any Outlook item Using Outlook 0
Diane Poremsky Outlook VBA: Work with Open Item or Selected Item Using Outlook 0
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
N Adding Appointment Item in Outlook to Shared Calendar Folder Outlook VBA and Custom Forms 7
M Outlook displays "choose folder" for each sent item. Using Outlook 2
A Outlook VBA - moving mail item to public folder using variable within path Using Outlook 6
M Outlook Appointment Item exceeds beyond the date range Using Outlook 2
M Outlook Appointment item does not show the item outside the date range Using Outlook 2
M outlook recurring item stucks me. :( Exchange Server Administration 1
P Outlook 2007 - Missing Calendar Item Using Outlook 4
P Outlook 2007 - Missing Calendar Item Using Outlook 1
D Outlook 2010 - Advanced Find - No Status Bar = No Item Count Using Outlook 2
R What happen to 'View Attachments' context menu item in Outlook 2010? Using Outlook 6
A Custom form - hitting 'next item' button hangs Outlook Outlook VBA and Custom Forms 2
E hot to get the email address of an outlook mail item from "on behalf of" part Outlook VBA and Custom Forms 1
D How to identify a mail item from a public folder in MS Outlook Outlook VBA and Custom Forms 5
G Outlook 2007 Meeting Item Send Button Outlook VBA and Custom Forms 10
P How to get Selected text form Mail item in outlook in ATL COM Outlook VBA and Custom Forms 1
Q Outlook become non responsive if i write outlook item in bulk Outlook VBA and Custom Forms 20
A Read Outlook Mail Item From Value Outlook VBA and Custom Forms 1
H Add an item to the "new" - option in outlook toolbar Outlook VBA and Custom Forms 6
G Outlook 2021 (New) doesn't respect default browser Using Outlook 1
B Outlook or iPhone turning tabs into spaces in Outlook Notes Using Outlook 1
P newly installed Office 365 includes OLD Outlook Using Outlook 6
R Outlook ribbon menu default? Using Outlook 7
H Spam email in Gmail not visible in Outlook Using Outlook 3
J How to transfer Win 10 Outlook to new Windows 11 pc? Using Outlook 9
J Renegade spam URL line displayed in old local Outlook 365 email title Using Outlook 3
G Reduce whitespace in Outlook desktop Contact Cards display Using Outlook 3
C Outlook classic via 365 Using Outlook 2
Dr. Demento Analogous Outlook code to read info into an array (or collection or whatever) Outlook VBA and Custom Forms 7
S Repair Outlook Using Outlook 8
V Outlook Form ListBox is not editable Outlook VBA and Custom Forms 2
F Outlook's contacts Using Outlook 1
D Outlook 2003 stopped dead Using Outlook 2
G Cannot receive emails from gmail account in Outlook 365 Using Outlook 1
E "Cannot display the folder. MS Outlook cannot access the specified file location" Using Outlook 8
P Outlook 2016 Working Offline Using Outlook 2
Rupert Dragwater Cannot reestablish gmail (email address) account in Outlook 365 Using Outlook 11
O Outlook 365 synchronisieren Exchange Server Administration 1

Similar threads

Back
Top