Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default EXCEL MACRO - fill column with color

guys...i need help in excel to fill the column color..

for example i need to fill the column with color red .. how to do it..

my purpose is that when i key in the word "r" or "R" then the colum
beside it will autofill color of RED

if target.column = 5 then

select case target.text

case "r" OR "R" ' this synta
correct?
****** here i need the syntax to fill the next
column with red color

case "y" or "Y"
****** yellow color in the next column

end select

else


exit sub

end if


pls help me..please..

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default EXCEL MACRO - fill column with color

Check out http://www.cpearson.com/excel/colors.htm
to set your colourindex



"tpk1031 " wrote in message
...
guys...i need help in excel to fill the column color..

for example i need to fill the column with color red .. how to do it..

my purpose is that when i key in the word "r" or "R" then the column
beside it will autofill color of RED

if target.column = 5 then

select case target.text

case "r" OR "R" ' this syntax
correct?
****** here i need the syntax to fill the next
column with red color

case "y" or "Y"
****** yellow color in the next column

end select

else


exit sub

end if


pls help me..please...


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default EXCEL MACRO - fill column with color

Target.Interior.ColorIndex = ????


On Thu, 16 Sep 2004 23:39:24 -0500, tpk1031
wrote:

guys...i need help in excel to fill the column color..

for example i need to fill the column with color red .. how to do it..

my purpose is that when i key in the word "r" or "R" then the column
beside it will autofill color of RED

if target.column = 5 then

select case target.text

case "r" OR "R" ' this syntax
correct?
****** here i need the syntax to fill the next
column with red color

case "y" or "Y"
****** yellow color in the next column

end select

else


exit sub

end if


pls help me..please...


---
Message posted from http://www.ExcelForum.com/


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
My fill color and font color do not work in Excel Std Edition 2003 chapstick Excel Discussion (Misc queries) 1 September 11th 05 08:48 PM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
My excel 2003 wont let me fill cells with color or color the tabs. trizog New Users to Excel 2 February 22nd 05 06:43 PM
Find first and last cells in column that have a certain fill color Ashleigh K. Excel Programming 1 December 11th 03 03:54 PM
Find first and last cells in column that have a certain fill color Ashleigh K. Excel Programming 0 December 11th 03 03:41 PM


All times are GMT +1. The time now is 02:29 PM.

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"