PC Review


Reply
Thread Tools Rate Thread

Code to automatically fill cells

 
 
C
Guest
Posts: n/a
 
      16th Jul 2009
I have an AI list in Excel. I am using Columns A through J. Column E
contains the status of the AI. When this cell = Closed I would like Columns
A:J to automatically fill with gray. I also have due date in column K. When
this date is earlier than current date I would like it to turn red.

Can someone help me with this? I am not a programmer but understand a
little about macros.

Thanks in advance.
 
Reply With Quote
 
 
 
 
CLR
Guest
Posts: n/a
 
      16th Jul 2009
You should be able to do what you want to accomplish with just Conditional
Formatting, and not need macros............give it a try and come back if you
need more help.

Vaya con Dios,
Chuck, CABGx3



"C" wrote:

> I have an AI list in Excel. I am using Columns A through J. Column E
> contains the status of the AI. When this cell = Closed I would like Columns
> A:J to automatically fill with gray. I also have due date in column K. When
> this date is earlier than current date I would like it to turn red.
>
> Can someone help me with this? I am not a programmer but understand a
> little about macros.
>
> Thanks in advance.

 
Reply With Quote
 
C
Guest
Posts: n/a
 
      16th Jul 2009
How do I get the complete row to fill A1:J1 if E = Closed?????

"CLR" wrote:

> You should be able to do what you want to accomplish with just Conditional
> Formatting, and not need macros............give it a try and come back if you
> need more help.
>
> Vaya con Dios,
> Chuck, CABGx3
>
>
>
> "C" wrote:
>
> > I have an AI list in Excel. I am using Columns A through J. Column E
> > contains the status of the AI. When this cell = Closed I would like Columns
> > A:J to automatically fill with gray. I also have due date in column K. When
> > this date is earlier than current date I would like it to turn red.
> >
> > Can someone help me with this? I am not a programmer but understand a
> > little about macros.
> >
> > Thanks in advance.

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      16th Jul 2009
Use an absolute reference. Select A1:J1, choose "Formula Is" from the drop
down and use this formula in the field next to the drop down...

=$E1="Closed"

--
Rick (MVP - Excel)


"C" <(E-Mail Removed)> wrote in message
news:8B6B0A72-9D0B-4A57-9395-(E-Mail Removed)...
> How do I get the complete row to fill A1:J1 if E = Closed?????
>
> "CLR" wrote:
>
>> You should be able to do what you want to accomplish with just
>> Conditional
>> Formatting, and not need macros............give it a try and come back if
>> you
>> need more help.
>>
>> Vaya con Dios,
>> Chuck, CABGx3
>>
>>
>>
>> "C" wrote:
>>
>> > I have an AI list in Excel. I am using Columns A through J. Column E
>> > contains the status of the AI. When this cell = Closed I would like
>> > Columns
>> > A:J to automatically fill with gray. I also have due date in column K.
>> > When
>> > this date is earlier than current date I would like it to turn red.
>> >
>> > Can someone help me with this? I am not a programmer but understand a
>> > little about macros.
>> >
>> > Thanks in advance.


 
Reply With Quote
 
ytayta555
Guest
Posts: n/a
 
      16th Jul 2009
On 16 Iul, 17:03, C <C...@discussions.microsoft.com> wrote:
> How do I get the complete row to fill A1:J1 if E = Closed?????


A little answer :

Sub ColorGray()

If Range("E1").Value = "Closed" Then
Columns("A:J").Select
With Selection.Interior
.ColorIndex = 15
End With
End If

End Sub

> When this cell = Closed ..... ....


Which one ? I put in in cell E1 , make adjustments according
with your needs
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to fill cells automatically =?Utf-8?B?RmVsdG9uZA==?= Microsoft Excel Worksheet Functions 2 18th Feb 2005 10:56 PM
How do I fill cells automatically, but only after the relevant cells are filled? Matt Stephans Microsoft Excel Misc 3 10th Oct 2004 10:16 PM
Automatically fill in cells? Mary Microsoft Excel Worksheet Functions 5 10th May 2004 12:40 PM
automatically fill cells =?Utf-8?B?U3RlIEh1Z2hlcw==?= Microsoft Excel Worksheet Functions 0 19th Nov 2003 09:56 PM
Fill in cells automatically IT in distress Microsoft Access 3 5th Nov 2003 10:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 PM.