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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

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
 

Forum statistics

Threads
1,147,691
Messages
5,742,659
Members
423,746
Latest member
Joaogomes

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