Macro to remove formatting and text boxes

J

Juan

Hi everyone,

we have a complex C# application that generates word documents. Those word
documents contain at some paragraphs highlighted text in yellow. Is it
possible to have a macro that removes this formating when the final user
presses a button in the document?

Also, there are several yellow text boxes, that should also be deleted by
another macro. How can I do this, and how can I be sure that I only delete
those text boxes in yellow (or a certain formatting)?

Thanks, from Spain

Juan Magaña
 
H

Helmut Weber

H Juan,
search for .Highlight = True and
replace it with .Highlight = False.
Concerning yellow textboxes. Search for a textboxt
with .Fill.ForeColor.RGB = RGB(255, 255, 153)
and delete it.
Ask again, just in case.
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word 97, XP, NT4.0, W98
 
J

Juan

Thanks for the tip, but...
how do I go through the whole document to search for highlighted text?
Sorry, but I´m pretty new to macros...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top