Custom icon (not from Office 365) for a macro in Outlook

Xmedia

New Member
OS Version(s)
  1. Windows
Outlook version
Outlook 365 32 bit
Email Account
Exchange Server
Operating system::    Win 11 Pro
Outlook version:     O365
Email type or host:    Exchange

Hey everyone,

I am currently looking for a way to assign a completely customised icon to an Outlook macro. I have not been able to find any clear information by searching the internet. RibbonX only supports Excel/Word/Powerpoint - not Outlook.

I wanted to solve this using the "GetImage" function. But I couldn't do it. Does anyone know a solution without Visual Studio?
The aim is to be able to insert the macro into an existing ribbon with a self-created icon.

I have already created the following scripts - but without success that the icon is displayed. My idea was to first link the macro to a ribbon and assign a standard icon.
Here I have exported the UI file as an overview to get the correct structure of the file.
Perhaps someone has already implemented this successfully?!

Enclosed are the scripts:
ThisOutlookSession:
Private Sub Application_Startup()
' Load picture
LoadImageIntoMemory
End Sub

Modul1:
Sub CustomizeRibbon(ribbon As IRibbonUI)
ribbon.Invalidate ' Ribbon neu laden, um Änderungen anzuzeigen
End Sub

Function CustomButton_GetImage(control As IRibbonControl) As IPictureDisp
On Error Resume Next
Set CustomButton_GetImage = g_customImage
End Function

Modul 2:
Option Explicit

Public g_customImage As IPictureDisp

Sub LoadImageIntoMemory()
Dim imagePath As String
imagePath = "C:\Bilder\Bild1.bmp" 'Pfad zu Ihrem Bild anpassen
Set g_customImage = LoadPicture(imagePath)
End Sub

CustomXML:
<mso:cmd app="olkexplorer" dt="1" slr="0" /><mso:customUI xmlns:x1="http://schemas.microsoft.com/office/2009/07/customui/macro" xmlns:mso="http://schemas.microsoft.com/office/2009/07/customui"><mso:ribbon><mso:qat/><mso:tabs><mso:tab idQ="mso:TabMail"><mso:group id="mso_c1.34C59677" label="TEST1" autoScale="true"><mso:button idQ="x1:projekt1.ExecuteFirstThenSecondMacro_0_34C624FC" label="Makro1" getImage="CustomButton_GetImage" onAction="Projekt1.ExecuteFirstThenSecondMacro" visible="true"/></mso:group></mso:tab></mso:tabs></mso:ribbon></mso:customUI>

Thank You
Xmedia
 
Hi,
Does anyone else have any ideas on how I can implement my request?

Thanks
 
Similar threads
Thread starter Title Forum Replies Date
Witzker Change icon for custom views Using Outlook 1
M Recurring icon for custom form task item Outlook VBA and Custom Forms 6
F Custom contact form icon issue Using Outlook 1
T Add 'Move to folder' icon to custom form Using Outlook 1
L wrong icon displayed for outlook custom form Outlook VBA and Custom Forms 8
T Custom Folder Icon Outlook VBA and Custom Forms 1
G Apply Custom Contacts form to all existing Contacts Outlook VBA and Custom Forms 1
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
G Outlook 2021 Add Picture to Custom Contact Form Outlook VBA and Custom Forms 2
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
AndyZ Contact Custom Form Tiny Text Outlook VBA and Custom Forms 3
A How to reduce size of custom contact form? Outlook VBA and Custom Forms 3
S Custom Contact card - need help creating one Outlook VBA and Custom Forms 1
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0
S Adding Custom Forms Outlook VBA and Custom Forms 4
Witzker How to get the button Karte ( map) in custom contact form Outlook VBA and Custom Forms 2
B Outlook 2019 Custom Email form - Edit default email form Outlook VBA and Custom Forms 6
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
M copy field value to custom field Outlook VBA and Custom Forms 0
J Does the .fdm contain my custom form? How to make ol use it? - ol2007 Outlook VBA and Custom Forms 4
J ol2021 custom form not displaying pics Outlook VBA and Custom Forms 37
N "Perform a Custom Action" Outlook VBA and Custom Forms 0
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
J custom form not displaying pictures Outlook VBA and Custom Forms 7
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
K Font Sizing in Custom Form Regions for Contacts Outlook VBA and Custom Forms 1
V Update new custom field Outlook VBA and Custom Forms 5
D Anyone tell me where custom view settings are stored? Outlook VBA and Custom Forms 9
S Outlook 2016 Arrange tasks by date, additional custom sorting, but still use friendly terms like Today, Tomorrow, This week? Using Outlook 1
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
D Custom Search Folders not refreshing/updating automatically Using Outlook 0
F Validation on custom task form after task acceptance Outlook VBA and Custom Forms 1
K UDF with formula not showing on Calendar custom view. Outlook VBA and Custom Forms 0
S Create a clickable custom column field Outlook VBA and Custom Forms 0
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
S Reference Custom Fields with VBA Outlook VBA and Custom Forms 2
L Custom Form Tutoral? Outlook VBA and Custom Forms 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
A Custom VBA to sort emails into folders Outlook VBA and Custom Forms 0
Victor_50 Outlook 2013 Custom Contact Form starts with "E-mail 2" Outlook VBA and Custom Forms 2

Similar threads

Back
Top