Solved

Remove highlighting from the Word legacy text fields

Posted on 2013-12-13
3
371 Views
Last Modified: 2013-12-13
Using the Visual Studio 2010, I have successfully written a VB application that
exports data from the application, to a Microsoft 2010 Word template.
In the template I have created tags using the Word's Form Filed tool.  
These tags have a grey background color that appear on the screen and on the
printed document.  Using the Word's Legacy Tools button, I can clear this highlighting
manually.

My question is, within my code, can I programmatically remove this highlighting from the
legacy text fields ?
0
Comment
Question by:N2435
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 39717448
This should do that job:
    ActiveDocument.FormFields.Shaded = False

Open in new window

0
 

Author Comment

by:N2435
ID: 39717481
Somehow my comments do not get included in the submit.

What I had noted is, I Goggled for most of a day and a haft, and this fix did not
appear in my search.

Thanks for the quick response and Fix.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39717696
Tip.

If you can do it manually, try recording a macro. It's not guaranteed, but there's a good chance that you will be able to see the method in the recorded code.
0

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.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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.

820 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