Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2007

Tip: Looking for answers? Try searching our database.

Formattinb cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles - 14 Jan 2007 13:08 GMT
Hi
Is it possible to change the background color of a column of cells depending
on the value
of the cell at the top of the column.
I have written a macro to do this but can't find a statement to do this:

worksheets(:Sheet1").cells(cl,rw).backcolor = QBColor(14)

Error message method not supported and nowhere in the help can I find an
answer.

Suggestions would be appreciated

Thanks

Charles
Don Guillett - 14 Jan 2007 13:14 GMT
Why not just use format>formula is>conditional formatting
=a2=$a$1 and format as desired>copy format using format painter.

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

> Hi
> Is it possible to change the background color of a column of cells
[quoted text clipped - 13 lines]
>
> Charles
Gary''s Student - 14 Jan 2007 13:21 GMT
try:

Sub Charles()
cl = 2
rw = 2
Sheets("Sheet1").Cells(cl, rw).Interior.ColorIndex = 14
End Sub

Signature

Gary''s Student
gsnu200701

> Hi
> Is it possible to change the background color of a column of cells depending
[quoted text clipped - 12 lines]
>
> Charles
Charles - 15 Jan 2007 08:00 GMT
Thanks Garry
The method works fine if I run it in its own sub routine.
I need to call it every time the month changes and this I do using a combo
box.
The problem is that when I call it from  the combo_click sub or even if I
add the code to the combo_click sub I get an error (Unable to use ColorIndex
procedure of Internal Class)

Charles

> try:
>
[quoted text clipped - 24 lines]
> >
> > Charles
Charles - 17 Jan 2007 06:11 GMT
Thanks Garry
The method works fine if I run it in its own sub routine.
I need to call it every time the month changes and this I do using a combo
box.
The problem is that when I call it from  the combo_click sub or even if I
add the code to the combo_click sub I get an error (Unable to use ColorIndex
procedure of Internal Class)

Charles

> try:
>
[quoted text clipped - 24 lines]
> >
> > Charles

> try:
>
[quoted text clipped - 24 lines]
> >
> > Charles
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.