473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How can we label, add and link tree sub nodes in a TreeView Control in powerpoint

Hi,

I am trying to use Treeview control 6.0 in powerpoint, but m stuck up. I dont know how I can label, add and link the tree sub nodes through VBA code.

Please help me on this...
Feb 19 '13 #1
10 2790
Seth Schrock
2,965 Expert 2GB
Here is a tutorial for TreeViews in Access: http://bytes.com/topic/access/insigh...-into-treeview. Most, if not all, of the VBA should be the same and I would think that the properties of the control would be the same. Should be a good start.
Feb 19 '13 #2
TheSmileyCoder
2,322 Expert Mod 2GB
You can (also) find parts 2 3 and 4 on my youtube channel:
Part 1 (Basic): http://www.youtube.com/watch?v=M5KqFjhQqNg
Part 2 (Navigation by click): http://www.youtube.com/watch?v=l7jCSMRpM6s
Part 3 (Update of treeview): http://www.youtube.com/watch?v=v9jc4e3VMbc
Part 4 (Icons): http://www.youtube.com/watch?v=qrLwUYjrByY

If you want to get notified when part 5 (Right click context sensitive menu) gets released then don't forget to subscribe to my youtube channel, its free. :)

I have not gotten around to making posts here on Bytes for parts 2+3+4, but its on my ToDo list.
Feb 19 '13 #3
Hi Seth and TheSmileyCoder :),

I tried to implement this code but I am getting this error.

[z{modedit{removed link to local drive}]

How shall I resolve this one...do I need to install some addon for this...??

Many Thanks for your help.

Shivani
Feb 20 '13 #4
TheSmileyCoder
2,322 Expert Mod 2GB
Hi shivani2212

You have tried to link to an image that is placed on your harddrive. To use Images in your post, click the Advanced button, and then add it as an attachment.
Feb 20 '13 #5
Hi TheSmileyCoder,

Another try to upload the image...


Thanks,
Shivani
Attached Images
File Type: jpg snapshot.jpg (55.6 KB, 790 views)
Feb 20 '13 #6
TheSmileyCoder
2,322 Expert Mod 2GB
Yes, that makes quite good sense. FORMS is the access project collection of open forms. Since you are in PowerPoint you will not have the same properties available to you.

If you have added a Treeview control to your PowerPoint then you need to set the Treeview reference (tv) to point to your Treeview. I have never done VBA code for PowerPoint, but like Access has a collection of forms, Word has a collection of Documents and Excel has a collection of Worksheets/Workbooks, I presume PowerPoint has a collection of ?presentations??

Furthermore you will in all likely-hood not have recordsets or similar defined. This is an example of how to do it in ACCESS, not PowerPoint. You will need to make heavy modifications to the code to make it work in PowerPoint.

Best of luck with your project.
Feb 20 '13 #7
Hi TheSmileyCoder

Thanks a lot for your help so far...

Shivani

@TheSmileyCoder
Feb 20 '13 #8
zmbd
5,501 Expert Mod 4TB
the collection class is "Slides"
"activepresentation"
etc...

Getting Started with VBA in PowerPoint 2010
Feb 20 '13 #9
TheSmileyCoder
2,322 Expert Mod 2GB
If you provide some more details on what it is you want to show in the treeview as well as how you get the information I might be able to provide a more detailed reply.

Thanks for the link zmbd.
Feb 20 '13 #10
zmbd
5,501 Expert Mod 4TB
My pleasure... at one time we were going to pull stuff from Access to Powerpoint so I had started trying to learn the automation so the link was handy. Thankfully, the person in charge of that project moved on to bigger and greater fish... or perhaps a Vogon (one can only hope).
Feb 20 '13 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Jim | last post by:
The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens: I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A...
2
by: Chris | last post by:
Hi, anyone experience with the TreeView control that is available in the Microsoft.Web.UI.WebControls component ? I want to add a few nodes to the TreeView-control but don't know quite how :...
2
by: Phil Townsend | last post by:
I am trying to integrate the Microsoft web controls TreeView Control. For initial familiarization with the control I have built a static tree structue in the .aspx page (code follows). I used the...
2
by: Ernest Cook | last post by:
Does anyone have any real world experience using the .Net version of the treeview control? If so, Can you recommend any good documentation sources for learning more about it. i.e. Methods, etc. ...
1
by: Larry Pits | last post by:
Hi All, I tried to add a treeview control onto my windows Form and I set the name of the treeview to otree1 and id to oletreeview1. In the test.aspx.vb, I want to add nodes to the tree and I am...
1
by: garyusenet | last post by:
Hi All, I'm eagerly anticipating what you have to say on something that's stumped me over the weekend. I'm writing a small application which utilises a treeview control. I've figured out how to...
4
by: Henry | last post by:
Does anybody have a real-world sample of buiding a treeview control using data from database tables? All the sample code I have found either builds the treeview manually or uses a file directory...
6
by: serge calderara | last post by:
Dear all, I was wondering is there is a way to customise the treView control in order to get any Control as a Node. What I try to do is having a Progress bar as a treeview node object. Is...
6
by: =?Utf-8?B?ZHNoZW1lc2g=?= | last post by:
Hello, I have a windows form with a TreeView control. When I first open the tree all nodes are colapsed. Then, I expand some of them and close the form. When I call Form.showDialog() once again...
0
by: Andy | last post by:
Hello all, I have a user getting an error 438, object doesn't support this prop. or method, when I run code to setup the treeview control. I'm using the MSCOMCTRL.OCX, file version: 6.01.9545....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.