PC Review


Reply
Thread Tools Rate Thread

Cannot use Node.Fullpath in a "CALL"

 
 
Ryan
Guest
Posts: n/a
 
      3rd Feb 2010
hello I have a treeview set up and would like to use it to call a function in
a module...this is what i have

Private Sub xMytreeview_NodeClick(ByVal Node As Object)

MsgBox Node.FullPath, vbInformation, "path"
'Call Node.FullPath
End Sub

This calls up the msgbox and displays CPAR_Create. I have named my function
in my module as CPAR_Create, unfortunately I get the error that "this object
does not support this property or method"

any help would be appreciated.

Thanks in advance
 
Reply With Quote
 
 
 
 
ChrisO
Guest
Posts: n/a
 
      4th Feb 2010
Call Node.FullPath

Is trying to Call a variable and that is why I used Application.Run in the
other thread.

Also, your original question was about calling 'CPAR Create' not
'CPAR_Create' and that is also why I replaced the spaces with an underscores.

In your original question you also said >>What I would like to
be able to do is call a function in a module when the subcat node is clicked
based on what text is used in the sub node:<< Meaning you only want to call
Child nodes not the Root nodes. That was the reason I did a search for the
Path Separator in the node FullPath. A Root node should not have a Path
Separator in it so ignore it. A Child should have a Path Separator so process
it.


--
A nod is as good as a wink to a blind horse.


"Ryan" wrote:

> hello I have a treeview set up and would like to use it to call a function in
> a module...this is what i have
>
> Private Sub xMytreeview_NodeClick(ByVal Node As Object)
>
> MsgBox Node.FullPath, vbInformation, "path"
> 'Call Node.FullPath
> End Sub
>
> This calls up the msgbox and displays CPAR_Create. I have named my function
> in my module as CPAR_Create, unfortunately I get the error that "this object
> does not support this property or method"
>
> any help would be appreciated.
>
> Thanks in advance

 
Reply With Quote
 
Ryan
Guest
Posts: n/a
 
      4th Feb 2010
Thanks Chris, got it working...tried the other code...but i kept putting a
comma in where i shouldn't...so it works now...thanks for your time.

"ChrisO" wrote:

> Call Node.FullPath
>
> Is trying to Call a variable and that is why I used Application.Run in the
> other thread.
>
> Also, your original question was about calling 'CPAR Create' not
> 'CPAR_Create' and that is also why I replaced the spaces with an underscores.
>
> In your original question you also said >>What I would like to
> be able to do is call a function in a module when the subcat node is clicked
> based on what text is used in the sub node:<< Meaning you only want to call
> Child nodes not the Root nodes. That was the reason I did a search for the
> Path Separator in the node FullPath. A Root node should not have a Path
> Separator in it so ignore it. A Child should have a Path Separator so process
> it.
>
>
> --
> A nod is as good as a wink to a blind horse.
>
>
> "Ryan" wrote:
>
> > hello I have a treeview set up and would like to use it to call a function in
> > a module...this is what i have
> >
> > Private Sub xMytreeview_NodeClick(ByVal Node As Object)
> >
> > MsgBox Node.FullPath, vbInformation, "path"
> > 'Call Node.FullPath
> > End Sub
> >
> > This calls up the msgbox and displays CPAR_Create. I have named my function
> > in my module as CPAR_Create, unfortunately I get the error that "this object
> > does not support this property or method"
> >
> > any help would be appreciated.
> >
> > Thanks in advance

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to properly "call" a macro - getting error 2485 "can't find object" EagleOne@microsoftdiscussiongroups.com Microsoft Access 2 24th May 2008 06:08 PM
Newbie: How to get TreeView node from FullPath? deko Microsoft C# .NET 2 20th Feb 2006 03:16 AM
BEWARE OF "CALL PLAN" and "CRITICAL PATH" SOFTWARE =?Utf-8?B?YmFsdG9iZXJuaWU=?= Microsoft Outlook BCM 0 31st Jan 2006 09:40 PM
How to make the "new call" window "create a journal entry" check . =?Utf-8?B?SGFs?= Microsoft Outlook Contacts 0 10th Dec 2004 03:03 PM
Treeview - locate node from fullpath copyco Microsoft VB .NET 5 9th Jan 2004 10:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 PM.