Return a value programming

  • Thread starter Thread starter Lp12
  • Start date Start date
L

Lp12

Hi,
I have a form that I want to control the return value coming from a code and
when I use: UserForm1.cargo.Value = AnswerCell.Offset(0, 2).Value , Im
getting an error 91 Object Variable or With block var not set.
Any thoughts?
Thanks a lot in advance.
 
It is telling you that you have not set AnswerCell as an object variable so
it does not know how to treat it. You will needd to do:

Set AnswerCell = Worksheets(?).Range(?) 'where you supply the ? info.
 
Tnx all.....
My bad :)

JLGWhiz said:
It is telling you that you have not set AnswerCell as an object variable so
it does not know how to treat it. You will needd to do:

Set AnswerCell = Worksheets(?).Range(?) 'where you supply the ? info.
 

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