How to color ligne in a listbox

Hello,

I try without success to color ligne (each ligne should be with a different colour) in a listbox with VBA (outlook). I find some example with VB, C#, but nothing I can apply in VBA. Some body can help me .

Thank in advance

Vincent




Answer this question

How to color ligne in a listbox

  • Leo12

    Hello Andy

    Thanks for your answer, (I am not surprise because on the object explorer, events and property was not able for the listbox ob ject). So the next question is how is it possible to use windows form .net in VBA macro.

    Thank again for your help

    Vincent



  • Muzzzy

    The listbox controls within the Office products do not support multi formating.
    All items will be formatted the same.

    You maybe able to, on your pc, use the controls available within .NET


  • sunrunner

    Thank again,

    I will try, but of corse, the target is to deploy on other PC.

    Vincent



  • Javfarary

    With vbe use the menu Tools > Additional Controls.
    This should allow you to select the required control.

    Not sure of the position regarding re-distributing the control if your solution has to work on other pcs.


  • How to color ligne in a listbox