Q: How to Insert the result of a VBA funcion in the midle of the Word text

P

Palhinha

Hi
1- How can I include the result of a VBA function in the text, so that
it runs the function when updating field's?
Eg,

In the Macro code:
Public Function TheTime() As String
TheTime = Now
End Function

In the Word Text, something like
This field was updated at {Some-Command TheTime}

2- Can the function have parameters?
 
Top