View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_547_] Leith Ross[_547_] is offline
external usenet poster
 
Posts: 1
Default Why does this statement give an error message?


Hello George,

A User Defined Function can only return a value that will be displayed
in the cell the UDF is in. You can not change the values of others
cells or their formats in a UDF. Calling a macro to chage a cell's
value or format from the UDF won't work either.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=513741