Solved

Word Vba - embed function in to a Word document

Posted on 2011-02-27
4
280 Views
Last Modified: 2012-05-11
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.

Example:
My name is {getName()}.





0
Comment
Question by:carsRST
  • 2
4 Comments
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 100 total points
Comment Utility
Like a mail merge?
0
 
LVL 16

Author Comment

by:carsRST
Comment Utility
Just a custom VBA function
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 400 total points
Comment Utility
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?
0
 
LVL 16

Author Closing Comment

by:carsRST
Comment Utility
From what I'm gathering it's not possible, as it is in Excel.  
Indirectly, you both answered what I was really asking.

Thanks.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now