• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Word Vba - embed function in to a Word document

As in Excel, one can create custom functions and call them from within Excel itself.

Any such method in Word?  Such as embedding functions within the Word doc so that they return a value in the document?  I'm trying to avoid a search and replace.

My name is {getName()}.

  • 2
2 Solutions
Aaron TomoskyTechnology ConsultantCommented:
Like a mail merge?
carsRSTAuthor Commented:
Just a custom VBA function
You can write something in VBA to open or create an instance of the Excel application, then open a workbook do some Excel-specific work and briing the results back to Word.

What are you hoping to do?
carsRSTAuthor Commented:
From what I'm gathering it's not possible, as it is in Excel.  
Indirectly, you both answered what I was really asking.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now