Solved

Remove highlighting from the Word legacy text fields

Posted on 2013-12-13
3
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

623 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