Is it possible to insert a field in a word document that will display the result of a VBA function call?
I want a custom summary of only certain rows at the bottom of a table: It would be easy to write a simple macro to identify the rows based on text in an adjacent column, but the hard part is getting the total into the proper cell at the bottom of the table.
I could hard-code the cell coordinates, which is bad (because more rows may be added).
I could hard-code the cell coordinates based off of the total rows minus X, which is better (but still kinda fixes the document layout).
I could use bookmarks, and insert the result at the bookmark (I'm not very familiar yet with manipulating bookmarks)
Or, my preference, I could insert a field at the right spot, that calls the macro/VBA function with the proper parameters, and displays the result... but Can I?
I want a custom summary of only certain rows at the bottom of a table: It would be easy to write a simple macro to identify the rows based on text in an adjacent column, but the hard part is getting the total into the proper cell at the bottom of the table.
I could hard-code the cell coordinates, which is bad (because more rows may be added).
I could hard-code the cell coordinates based off of the total rows minus X, which is better (but still kinda fixes the document layout).
I could use bookmarks, and insert the result at the bookmark (I'm not very familiar yet with manipulating bookmarks)
Or, my preference, I could insert a field at the right spot, that calls the macro/VBA function with the proper parameters, and displays the result... but Can I?