Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default TreeView Questions

I am looking for a good resource for the TreeView Control in VBA. Can anyone
recommend one? In the mean time I have a question.

1) How do disable the users ability to change the Text property of the node
once the userform initializes? For example belwo the text property is "Child
11". Once the Tree form pops up, the user can single-click on "Child 11" and
change the text (like changing file name when single-clicking in folder tree
in Windows). I don't want the user to have this option.

Set nodX = .Add("C1", tvwChild, "C11", "Child 11")

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default TreeView Questions

The .LabelEdit property ?

NickHK

"ExcelMonkey" wrote in message
...
I am looking for a good resource for the TreeView Control in VBA. Can

anyone
recommend one? In the mean time I have a question.

1) How do disable the users ability to change the Text property of the

node
once the userform initializes? For example belwo the text property is

"Child
11". Once the Tree form pops up, the user can single-click on "Child 11"

and
change the text (like changing file name when single-clicking in folder

tree
in Windows). I don't want the user to have this option.

Set nodX = .Add("C1", tvwChild, "C11", "Child 11")

Thanks

EM



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default TreeView Questions

perhaps
..SingleSel = True

br Jim

"ExcelMonkey" skrev i melding
...
I am looking for a good resource for the TreeView Control in VBA. Can
anyone
recommend one? In the mean time I have a question.

1) How do disable the users ability to change the Text property of the
node
once the userform initializes? For example belwo the text property is
"Child
11". Once the Tree form pops up, the user can single-click on "Child 11"
and
change the text (like changing file name when single-clicking in folder
tree
in Windows). I don't want the user to have this option.

Set nodX = .Add("C1", tvwChild, "C11", "Child 11")

Thanks

EM



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default TreeView Questions

Nick, when I go to the Object Browswer and look under TreeView it appears
under MSComctLib. It appears to have a property called LabelEdit. However,
I cannot seem to access this within my code. It does not pop up as an option
after I type:

TreeView1.Nodes.nodX.

Why would it appear in the Object Browswer but not be available? Does it
have anything to do with the fact that it shows up under MSComctLib?

Thanks
EM


"NickHK" wrote:

The .LabelEdit property ?

NickHK

"ExcelMonkey" wrote in message
...
I am looking for a good resource for the TreeView Control in VBA. Can

anyone
recommend one? In the mean time I have a question.

1) How do disable the users ability to change the Text property of the

node
once the userform initializes? For example belwo the text property is

"Child
11". Once the Tree form pops up, the user can single-click on "Child 11"

and
change the text (like changing file name when single-clicking in folder

tree
in Windows). I don't want the user to have this option.

Set nodX = .Add("C1", tvwChild, "C11", "Child 11")

Thanks

EM




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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
TreeView Help Tony Excel Programming 0 September 21st 05 05:39 PM
Treeview Patrick Choi[_2_] Excel Programming 1 September 6th 04 08:29 AM
How to Treeview in VBA kvenku[_9_] Excel Programming 1 May 27th 04 01:03 PM


All times are GMT +1. The time now is 09:47 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"