Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Error 424 : Object required

I have a class module called "Node" which has a method with the following
heading: Public Sub ini()

From another module, "module2", I have the following code:
Dim root As Node
Set root = New Node
root.ini

When I try to run this, i get "Runtime error 424: Object required".
What am I doing wrong?

  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Error 424 : Object required

With this in a standard module:
Sub test()
Dim root As Node
Set root = New Node
root.ini
End Sub

and this in a class module called "Node"
Public Sub ini()
MsgBox "Hello"
End Sub

I don't get any errors. Perhaps you should step through your code (F8) and
see exactly where your code fails (there are several useful tools under Debug
that can help you figure out what is going wrong and where - F8 will step
through your code one line at a time).


"vivmaha" wrote:

I have a class module called "Node" which has a method with the following
heading: Public Sub ini()

From another module, "module2", I have the following code:
Dim root As Node
Set root = New Node
root.ini

When I try to run this, i get "Runtime error 424: Object required".
What am I doing wrong?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Error 424 : Object required

Thank you. I thought by clicking 'debug' on the error message I would get to
the exact line that crashed. F8 carried me to the real line.

"JMB" wrote:

With this in a standard module:
Sub test()
Dim root As Node
Set root = New Node
root.ini
End Sub

and this in a class module called "Node"
Public Sub ini()
MsgBox "Hello"
End Sub

I don't get any errors. Perhaps you should step through your code (F8) and
see exactly where your code fails (there are several useful tools under Debug
that can help you figure out what is going wrong and where - F8 will step
through your code one line at a time).


"vivmaha" wrote:

I have a class module called "Node" which has a method with the following
heading: Public Sub ini()

From another module, "module2", I have the following code:
Dim root As Node
Set root = New Node
root.ini

When I try to run this, i get "Runtime error 424: Object required".
What am I doing wrong?

  #4   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Error 424 : Object required

Glad to help.

"vivmaha" wrote:

Thank you. I thought by clicking 'debug' on the error message I would get to
the exact line that crashed. F8 carried me to the real line.

"JMB" wrote:

With this in a standard module:
Sub test()
Dim root As Node
Set root = New Node
root.ini
End Sub

and this in a class module called "Node"
Public Sub ini()
MsgBox "Hello"
End Sub

I don't get any errors. Perhaps you should step through your code (F8) and
see exactly where your code fails (there are several useful tools under Debug
that can help you figure out what is going wrong and where - F8 will step
through your code one line at a time).


"vivmaha" wrote:

I have a class module called "Node" which has a method with the following
heading: Public Sub ini()

From another module, "module2", I have the following code:
Dim root As Node
Set root = New Node
root.ini

When I try to run this, i get "Runtime error 424: Object required".
What am I doing wrong?

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
Object Required Error MarkHear1 Excel Programming 7 April 25th 07 03:51 PM
Object required error 424 why getting? Chet Excel Programming 2 April 6th 07 07:26 PM
Error: 424 Object required DavidM[_3_] Excel Programming 1 January 13th 05 03:23 PM
Error 424 - Object Required [email protected] Excel Programming 2 December 30th 04 03:38 PM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM


All times are GMT +1. The time now is 03:32 PM.

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"