View Single Post
  #1   Report Post  
Robert Mulroney
 
Posts: n/a
Default VBA function results in fields

Is it possible to have a document field return the result of a macro
function? I'm hopeing to have a field that would call a particular function
each time it is updated and display the results. It's important that I'm able
to pass a parameter to the function. The function might look sometimg like:


public function foo(param as integer) as string

.....
'some calculations
......

foo = "my string"

end function


I'm aware that it's possible to update fields from macros but is it possible
to have a field update itself?