Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterate through treeview nodes Jonathan Brown Excel Programming 4 February 9th 09 12:53 AM
VBA croaks on Nodes.Clear if TreeView is *not* Visible. [email protected] Excel Programming 1 August 24th 08 12:54 AM
Adding nodes to treeview John Excel Programming 3 December 1st 04 09:07 PM
treeview add nodes Serkan[_2_] Excel Programming 3 October 3rd 03 09:55 AM
TreeView: add more than one node to nodes collection Peter[_25_] Excel Programming 3 September 5th 03 12:15 PM


All times are GMT +1. The time now is 04:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"