View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Syed Zeeshan Haider[_4_] Syed Zeeshan Haider[_4_] is offline
external usenet poster
 
Posts: 8
Default Returning by Function

Hello Experts,
I have Excel 97 Pro on Win98SE.

For a certain complex calculation, I have written a specific function in
VBA. This function returns a date. For a certain situation, I want this
function to return a string. Can a function return two different data types
for two different conditions?

Thank you,
--
Syed Zeeshan Haider.
http://szh.20m.com/


-----------------------------------
Allah says to Mankind:
"Then which of the favours of your Lord will ye deny?"