Solved

Remove highlighting from the Word legacy text fields

Posted on 2013-12-13
3
362 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

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…
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 an MLA formatted document, as well as a bibliography with citations.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

759 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

17 Experts available now in Live!

Get 1:1 Help Now