A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How con I add Nodes to my TreeView in OL2003 Forms (VBS)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th 06, 09:36 AM posted to microsoft.public.outlook.program_forms
HelixX23
external usenet poster
 
Posts: 1
Default How con I add Nodes to my TreeView in OL2003 Forms (VBS)

Hi...
I´d like to add a treeview Element to my Outlook Form.

Can enyone give me an example...?

In VBA this wokrs fine...
Ads
  #2  
Old January 16th 06, 11:26 PM posted to microsoft.public.outlook.program_forms
Wolfram Jahn
external usenet poster
 
Posts: 12
Default How con I add Nodes to my TreeView in OL2003 Forms (VBS)

HelixX23 wrote:

Hi...
I´d like to add a treeview Element to my Outlook Form.

Can enyone give me an example...?

In VBA this wokrs fine...


Assuming you already have a treeview control named "TreeView1" on your
form page named "P.1"

sub tvtest
dim pgs,tv,i
set pgs = Item.GetInspector.ModifiedFormPages
set tv = pgs("P.1").controls("TreeView1")
for i = 1 to 3 ' e.g.
tv.nodes.add "Node " & i
next ' i
end sub


More treeview info at
http://msdn.microsoft.com/library/de...iewcontrol.asp

Make sure to use numbers instead of vba constants (4 instead of
tvwChild). VBS does not know vba constants.


HTH, Wolfram
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to apply vba code to OL2003 forms ? TimR Outlook - Using Contacts 1 February 17th 06 04:41 PM
Contact Forms Rob Outlook - General Queries 7 February 13th 06 07:02 PM
contact forms BOUTM13 Outlook - Using Contacts 1 February 9th 06 02:33 PM
Forms Mostro Outlook - General Queries 2 January 26th 06 04:34 PM
Outlook automation using vbs Marceepoo Outlook - Installation 1 January 17th 06 04:18 AM


All times are GMT +1. The time now is 06:35 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.