LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Help with Tree View functionality.....

Hi Experts,
I'm using the tree view functionality, where the node values are taken
from a cell. Using the following code,

With TreeView1.Nodes
..Clear


Set nodX = .Add(, , "CName",
Worksheets("Cert_Details").Range("C_Name").Value)



Set nodX = .Add("CName", tvwChild, "Path",
Worksheets("Cert_Path_module").Range("Path").Value )



Set nodX = .Add("Path", tvwChild, "Mod1",
Worksheets("Cert_Path_module").Range("Module_1").V alue)
Set nodX = .Add("Path", tvwChild, "Mod2",
Worksheets("Cert_Path_module").Range("Module_2").V alue)
Set nodX = .Add("Path", tvwChild, "Mod3",
Worksheets("Cert_Path_module").Range("Module_3").V alue)
Set nodX = .Add("Path", tvwChild, "Mod4",
Worksheets("Cert_Path_module").Range("Module_4").V alue)
Set nodX = .Add("Path", tvwChild, "Mod5",
Worksheets("Cert_Path_module").Range("Module_5").V alue)

Here is my question.
If i have few cells that do not have any values for
ex.Worksheets("Cert_Path_module").Range("Module_1" ).Value)... then i
want that tree node with this cell value to be deleted, rather than
having a blank tree node. Any Suggestions???

Thanks for your help.

 
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
Tree view in Excel duxxyy Excel Discussion (Misc queries) 1 March 25th 08 02:24 PM
tree view Stewart Rogers Excel Programming 1 July 22nd 04 12:58 PM
tree view control Duraiswamy Lingappan Excel Programming 1 July 20th 04 09:14 PM
tree view control Harald Staff Excel Programming 0 June 10th 04 04:07 PM
tree view control julio Excel Programming 0 June 10th 04 03:04 PM


All times are GMT +1. The time now is 11:43 AM.

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"