Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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