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: 37
Default Get only child nodes?

Hi all:

I am using a treeview control to display data that I have on a
spreadsheet. I looked around the internet for a solution to a problem
that I am facing, but could not find the answer that I want...

Is there any way I can get only the child nodes of a selected parent
node in a Treeview control in the order they are in the treeview?

I know there are many posts and solutions giving how to get the child
nodes, but somehow the logic always returns all the nodes at the
selected level too... for ex.

MSoffice:
+ Word
- Excel
- workbook
- worksheet
- VBA
- Temp
+ Powerpoint
+ Access

Here, if I select the node "Excel", I only want the child nodes of
Excel and any other child nodes of Excel's children. (hope this makes
sense). In short, I want workbook, worksheet, VBA and Temp (In this
order only). The solutions offered always return Powerpoint and Access
also. I dont want those.

I am not able to determine as to what condition I should check for so
that my program will filter out the unwanted nodes....probably it is
getting complex because all solutions use recursive calls.

If anyone can help, I will post the code that I currently have.

Thanks!
Satish

 
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
Creating Nodes Andy Excel Programming 1 November 10th 05 07:35 PM
Minimum route from two nodes stefantem[_4_] Excel Programming 2 September 28th 04 12:03 AM
Minimum route from two nodes stefantem[_6_] Excel Programming 1 September 24th 04 04:48 PM
Minimum route from two nodes stefantem[_5_] Excel Programming 0 September 24th 04 11:46 AM
treeview add nodes Serkan[_2_] Excel Programming 3 October 3rd 03 09:55 AM


All times are GMT +1. The time now is 10:44 AM.

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

About Us

"It's about Microsoft Excel"