Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to create an "IF - THEN" macro


Is there a way to create a macro that will highlight a range, fill it
with color and change the font color upon entering a date into a
specific cell?
Example below shows how I have my headings. I want to create a macro
that once I type a date in cell "F1" (date closed) that it will
highlight range "A1-F1" fill in the range with a light yellow and gray
the text.

Company Fname Lname Date Recvd Date Due Date Closed

Any help would be greatly appreciated.

Thank you.


--
TXNDe
------------------------------------------------------------------------
TXNDe's Profile: http://www.excelforum.com/member.php...o&userid=36253
View this thread: http://www.excelforum.com/showthread...hreadid=560457

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default How to create an "IF - THEN" macro

Someone will come in with a fancy formula to check for a date, but if the
cell is blank and you just want to colour the font and cell when something
is entered then select A1:F1 and go to Format<conditional formatting... set
'formula is' and enter =NOT(ISBLANK($F1))

Now when the cell contains an entry in F1 it will colour it up

You can use the format painter to copy it to other rows

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"TXNDe" wrote in
message ...

Is there a way to create a macro that will highlight a range, fill it
with color and change the font color upon entering a date into a
specific cell?
Example below shows how I have my headings. I want to create a macro
that once I type a date in cell "F1" (date closed) that it will
highlight range "A1-F1" fill in the range with a light yellow and gray
the text.

Company Fname Lname Date Recvd Date Due Date Closed

Any help would be greatly appreciated.

Thank you.


--
TXNDe
------------------------------------------------------------------------
TXNDe's Profile:
http://www.excelforum.com/member.php...o&userid=36253
View this thread: http://www.excelforum.com/showthread...hreadid=560457



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dav Dav is offline
external usenet poster
 
Posts: 1
Default How to create an "IF - THEN" macro


as Nick says it will wok you can also grey the text

=LEFT(CELL("format",F1),1)="d" as a formula in conditional formating
may also work looking for a date format

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=560457

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to create an "IF - THEN" macro


Just wanted to say thank you. The suggestions worked perfectly.


--
TXNDe
------------------------------------------------------------------------
TXNDe's Profile: http://www.excelforum.com/member.php...o&userid=36253
View this thread: http://www.excelforum.com/showthread...hreadid=560457

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
Create Macro to Copy Data from one spreadsheet to another Cheri Excel Discussion (Misc queries) 19 July 21st 06 10:54 PM
How do I create a macro that will compare columns and place data CompuCat Excel Worksheet Functions 0 March 20th 06 06:21 PM
How can you create a macro on a protected sheet? Felix Excel Discussion (Misc queries) 2 February 23rd 06 12:37 AM
How do I create a macro that will automatically input lines? cporter Setting up and Configuration of Excel 1 February 22nd 06 10:18 AM
create autosum macro along with notation on the side pino Excel Worksheet Functions 0 June 16th 05 09:44 PM


All times are GMT +1. The time now is 06:42 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"