View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Return a value programming

Perhaps it should be

UserForm1.cargo.Value = Activecell.Offset(0, 2).Value

--
---
HTH

Bob

__________________________________________
UK Cambridge XL Users Conference 29-30 Nov
http://www.exceluserconference.com/UKEUC.html

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Lp12" wrote in message
...
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.