TreeView: how to change font and size of font in VBA ? (1 Viewer)

Alain CHAZOT

New member
Local time
Today, 12:34
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 !
 

June7

AWF VIP
Local time
Today, 02:34
Joined
Mar 9, 2014
Messages
5,463
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

Top Bottom