TreeView: how to change font and size of font in VBA ?

Alain CHAZOT

New member
Local time
Today, 08:07
Joined
Mar 7, 2021
Messages
14
Hello,
I am using a TreeView in a form.
I want to use the "Calibri" font in size 9.
How to change font and size in VBA, please ?

Thank you for your help !
 
I can do it in form Load event that instantiates the TreeView control:

tv.Font.Size = 9
tv.Font.Bold = True
tv.Font.Italic = True
tv.Font.Name = "Calibri (Detail)"
 
Last edited:

Users who are viewing this thread

Back
Top Bottom