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.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"steve" wrote in message
...
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?