Solved

Word Vba - embed function in to a Word document

Posted on 2011-02-27
4
281 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
ID: 34992556
Like a mail merge?
0
 
LVL 16

Author Comment

by:carsRST
ID: 34992639
Just a custom VBA function
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 400 total points
ID: 34992810
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
ID: 34992945
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Word - Access 3 49
Microsoft Word Pop Up Form 7 34
How to open a ZIP file. 6 40
How to change Excel spreadsheet into Word outline? 3 40
I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

862 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

24 Experts available now in Live!

Get 1:1 Help Now