Formatting

markham

New Member
Joined
May 9, 2004
Messages
12
How can I get an entire row to format when specific text is entered?

What I mean is,

When I type "credit" in A1, I want Row 1 to fill with a Green Pattern automatically.

Thanks.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Select the cells in the row you want to be formatted (since I doubt it's the ENTIRE row), and go to Format\Conditional Formatting.

In the dialog, select 'formula is' from the dropdown list and enter the formula =$A1="credit" in the blank. Then click the 'format' button, and select your colors/borders/fonts. Click OK until you are out of the dialog box, then try entering 'credit' in A1. :)
 

Harvey

Well-known Member
Joined
Nov 18, 2004
Messages
953
and if you want to use macro use this:
Code:
With Rows(5).EntireRow.Interior
    .ColorIndex = 4
    .Pattern = xlPatternCrissCross
End With
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,488
Messages
5,770,384
Members
425,614
Latest member
rhobbo1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top