Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Font colour of specific xl treeview nodes - solved
Hi all,
Further to my earlier posting and in case anybody else wants to do this in future the following code snippets will colour the font of the nodes. Whilst building the treeview: Dim nodx As Object Set nodx = TreeView1.Nodes.Add [relative] [relationship] [key] [text] nodx.Forecolor = vbRed When node is selected: TreeView1.SelectedItem.ForeColor = vbRed Hope this helps somebody, it has caused me lots of frustration, and now it seems so simple! Regards Michael |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Iterate through treeview nodes | Excel Programming | |||
VBA croaks on Nodes.Clear if TreeView is *not* Visible. | Excel Programming | |||
Adding nodes to treeview | Excel Programming | |||
treeview add nodes | Excel Programming | |||
TreeView: add more than one node to nodes collection | Excel Programming |