Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
moekan
 
Posts: n/a
Default Add fill colors: green & red & yellow on toolbar, instead clickin.

I want to add different colors on toolbar to fill cell color. Not having to
click on fill color box on toolbar to color cell each time.
  #2   Report Post  
 
Posts: n/a
Default

hi,
create three macros, 1 for each color
Sub macgetcolor()
Selection.Interior.ColorIndex = 5
End Sub
red = 5
green = 4
yellow = 6
Put an macro icon up for each color and assign 1 of the
macro to each icon. modify the icon to reflect the color.
if you don't like those colors then in a blank workbook
paste and run this code. it will show you all of the
colors in excel and their indexes.
Sub macGetColors()
' Macro written 2/10/02 by FSt1

Sheets("Sheet1").Select
Range("B2").Select
Set ci = Range("A1")
ci.Value = 1
Set c = Range("B2")
Do Until ci 56
Set c2 = c.Offset(1, 0)
Set cnum = c.Offset(0, 1)
c.Interior.ColorIndex = ci.Value
c.Offset(0, 1) = ci.Value
ci.Value = ci.Value + 1
Set c = c2
c.Select
Loop

End Sub

-----Original Message-----
I want to add different colors on toolbar to fill cell

color. Not having to
click on fill color box on toolbar to color cell each

time.
.

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
FILL COLORS ELYOD NANOC Excel Worksheet Functions 1 March 6th 05 11:53 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
Better Fill Colors? callmekilo Excel Discussion (Misc queries) 1 January 2nd 05 03:34 PM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM


All times are GMT +1. The time now is 06:18 PM.

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"