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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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. :)
 
Upvote 0
and if you want to use macro use this:
Code:
With Rows(5).EntireRow.Interior
    .ColorIndex = 4
    .Pattern = xlPatternCrissCross
End With
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

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
Back
Top