• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Remove highlighting from the Word legacy text fields

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
N2435
Asked:
N2435
  • 2
1 Solution
 
GrahamSkanRetiredCommented:
This should do that job:
    ActiveDocument.FormFields.Shaded = False

Open in new window

0
 
N2435ProgrammerAuthor Commented:
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
 
GrahamSkanRetiredCommented:
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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now