DayLaborer
Programmer
I have a function that returns a value, conceptually similar to this:
(The similarity is that it takes no arguments and returns a value.) I would like that value inserted at a particular spot in a MS Word document.
I am not sure what impact the following has on my question, but I figured it may be relevant. This Word doc is using "mail merge"; its data source is an Excel file. As far as I'm concerned, this function could go in either the Excel or the Word side of the process, although logically I would think it should be on the Word doc.
How can I have that value automatically appear in the Word doc without asking the user to click or do something?
Thanks,
Eliezer
Code:
Public Function MyLittleFunction()
MyLittleFunction = "I want this value in a particular spot in my MS Word document."
End Function
I am not sure what impact the following has on my question, but I figured it may be relevant. This Word doc is using "mail merge"; its data source is an Excel file. As far as I'm concerned, this function could go in either the Excel or the Word side of the process, although logically I would think it should be on the Word doc.
How can I have that value automatically appear in the Word doc without asking the user to click or do something?
Thanks,
Eliezer