Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Return a value programming

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lp12 - 25 Nov 2007 15:44 GMT
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.
Bob Phillips - 25 Nov 2007 15:59 GMT
Perhaps it should be

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

Signature

---
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)

> Hi,
> I have a form that I want to control the return value coming from a code
[quoted text clipped - 3 lines]
> Any thoughts?
> Thanks a lot in advance.
JLGWhiz - 25 Nov 2007 16:21 GMT
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.

> 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.
Lp12 - 26 Nov 2007 06:16 GMT
Tnx all.....
My bad  :)

> 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:
[quoted text clipped - 7 lines]
> > Any thoughts?
> > Thanks a lot in advance.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.