Solved

Word Vba - embed function in to a Word document

Posted on 2011-02-27
4
282 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

803 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