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 / January 2006

Tip: Looking for answers? Try searching our database.

calling a function in a worksheet from a user form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
steve - 19 Jan 2006 21:21 GMT
How can I call a function in the code from a worksheet while in the code for
a form? For example, I have a function called GetData1 in a worksheet
"Part#". I want to call this functio from the VB code in a form "Status", but
'Call GetData1' doesn't work. Neither does 'Call Part#.GetData1'. Any ideas?
Bob Phillips - 19 Jan 2006 22:00 GMT
If the function is Public, you could call it by the sheet's codename

Sheet1.GetData1

but why not just move the function to a standard code module.

Signature

HTH

Bob Phillips

(remove nothere from email address if mailing direct)

> How can I call a function in the code from a worksheet while in the code for
> a form? For example, I have a function called GetData1 in a worksheet
> "Part#". I want to call this functio from the VB code in a form "Status", but
> 'Call GetData1' doesn't work. Neither does 'Call Part#.GetData1'. Any ideas?
 
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.