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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top