Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

highlighting lines in vba word document

Status
Not open for further replies.

RedBelly

Programmer
Mar 2, 2004
3
GB
Hi,
I'm new to vba and apologise if mail is simple one.
I have a word document containing e.g. the following text

beer is great
cider makes you ill

I want to create a macro to find the word beer and then highlight in RED the entire line from the word beer to the word great.

can anyone help ?

Regards
RedBelly
 

Welcome to TT RedBelly. To get the most from these fora please read FAQ222-2244.

However you are in the wrong forum. This is the Visual Basic(Microsoft): Version 5 & 6 forum. You might want to try either the Microsoft: Office Forum68 or the VBA Visual Basic for Applications (Microsoft) Forum707.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top