Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
anthony
 
Posts: n/a
Default cell colour change

could some one please tell me how in a visual basic macro i can change the
background colour of a cell.


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

activecell.interior.colorindex = 3

sets it to red

--
HTH

Bob Phillips

"anthony" wrote in message
...
could some one please tell me how in a visual basic macro i can change the
background colour of a cell.




  #3   Report Post  
Sunil Jayakumar
 
Posts: n/a
Default

Hi Anthony,

You can try:

ActiveCell.Interior.ColorIndex = x

where x is the colour reference (6 is yellow)

Hope this helps

Warm regards

Sunil Jayakumar

"anthony" wrote in message
...
could some one please tell me how in a visual basic macro i can change the
background colour of a cell.



www.ayyoo.com/credit-cards.html


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
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM
how do i copy formula and change worksheet instead of cell dal0506 Excel Worksheet Functions 2 January 21st 05 08:41 PM
Change workbook sheet reference using cell A1 to change a vairable Reed Excel Worksheet Functions 4 January 20th 05 07:15 PM


All times are GMT +1. The time now is 10:23 AM.

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

About Us

"It's about Microsoft Excel"