Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How to change the color of a row using VBA

Hi, thanks for the other help, know I need to see if I can
change the color of a hole row using Excel VBA. I've been
trying to work around the code but it gives me an "Object
Required" Error. thanks in advanced
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to change the color of a row using VBA

Hi

This will color the activecell row

Sub test()
Rows(ActiveCell.Row).Interior.ColorIndex = 3
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"George" wrote in message ...
Hi, thanks for the other help, know I need to see if I can
change the color of a hole row using Excel VBA. I've been
trying to work around the code but it gives me an "Object
Required" Error. thanks in advanced



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to change the color of a row using VBA


Range("A1").Entirerow.Interior.ColorIndex = 3

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"George" wrote in message
...
Hi, thanks for the other help, know I need to see if I can
change the color of a hole row using Excel VBA. I've been
trying to work around the code but it gives me an "Object
Required" Error. thanks in advanced



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkbox to change background color, font color and remove/ add bo Sara Excel Discussion (Misc queries) 2 May 1st 23 11:43 AM
Conditional format color is set correct, yet color will not change Mark Excel Worksheet Functions 12 February 5th 09 12:08 AM
Change tab color based on current color of a cell MarkT Excel Discussion (Misc queries) 0 May 22nd 08 05:46 PM
how can I conditionally change font color, or background color? MOHA Excel Worksheet Functions 3 August 21st 06 06:57 PM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM


All times are GMT +1. The time now is 11:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"