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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Background Color in Excel selected Row 1

Status
Not open for further replies.

shavon

Programmer
Jun 18, 2001
102
CA
Hello:

I would like to change the Background color for a selected area in Excel.

For example:

Select Cells A5 to G5 and change the background color to Red.

Any tips please?

Thank you
 
Hot from my Excel Macro recorder;

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 15/01/2007 by Hugh Lerwill

Range("D5:I18").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
End Sub

Condensed;

XlObj.ActiveSheet.Range("D5:I18").Interior.ColorIndex = 6

Hugh,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top