Object required - run time error 424.

  • Thread starter Thread starter devorivivere
  • Start date Start date
D

devorivivere

Set rArea = Application.InputBox(prompt:="Select range:", Type:=8)
Set rXValues = Application.InputBox(prompt:="Select XValues:", Type:=8)
Set rYValues = Application.InputBox(prompt:="Select YValues:", Type:=8)


It worked fine.
Now it reports the error in subject to me.
Sometime VBA crashes on the 1st instruction, sometime on the 2nd.

Thanks, Alex.
 
If you click cancel, then you won't return a range and your set statement
will produce that error.

Harald Staff gave you some sample code in a previous post.
 
I always selected the range with my mouse and the clicked OK.
I never closed the msgbox with the "X" at upright position.
 
And I have never gotten this error using code similar to Harald's.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top