Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Macros - Automatically highlighting rows

Is there a macro or formula that I can use to automatically highlight row
once a comment is inserted. I included a sample below

Name Address contact Status
No

If I put no in the status comment, I would like to have the entire row be
highlighted red.

Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Macros - Automatically highlighting rows



Rather than a macro, why not use Conditional Formatting?

Assuming Name, Address, Contact and Status are in Columns A
to D, and the header is in row 1, then highlight the area
where you will be entering data. With the cursor on cell
A2 choose "Format" "Conditional Formatting" and change from
"Cell Value Is" to "Formula Is". Enter the formula
$D2="No" and then click on "Format...", "Patterns" and
choose the red colour.

Whenever "No" is input in column D, Columns A to D of that
row will be highlighted in red.

*** Sent via Developersdex http://www.developersdex.com ***
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Macros - Automatically highlighting rows

Hi,

You don't need a macro. select all the rows where this will apply then
Format|Conditional Format
select Formula is
Enter the formula
=$D2="No"
Pick a colour
OK

Change the 2 to the top row of your range.

Mike

"Dolores" wrote:

Is there a macro or formula that I can use to automatically highlight row
once a comment is inserted. I included a sample below

Name Address contact Status
No

If I put no in the status comment, I would like to have the entire row be
highlighted red.

Is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Macros - Automatically highlighting rows

If you are going to highlight in red, make the text colour white so you can
still read your work.
--
I am running on Excel 2003, unless otherwise stated. Please rate posts so we
know when we have answered your questions. Thanks.


"Mike H" wrote:

Hi,

You don't need a macro. select all the rows where this will apply then
Format|Conditional Format
select Formula is
Enter the formula
=$D2="No"
Pick a colour
OK

Change the 2 to the top row of your range.

Mike

"Dolores" wrote:

Is there a macro or formula that I can use to automatically highlight row
once a comment is inserted. I included a sample below

Name Address contact Status
No

If I put no in the status comment, I would like to have the entire row be
highlighted red.

Is this possible?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Macros - Automatically highlighting rows


Thanks you very much, you were very helpful.

"Andy" wrote:



Rather than a macro, why not use Conditional Formatting?

Assuming Name, Address, Contact and Status are in Columns A
to D, and the header is in row 1, then highlight the area
where you will be entering data. With the cursor on cell
A2 choose "Format" "Conditional Formatting" and change from
"Cell Value Is" to "Formula Is". Enter the formula
$D2="No" and then click on "Format...", "Patterns" and
choose the red colour.

Whenever "No" is input in column D, Columns A to D of that
row will be highlighted in red.

*** Sent via Developersdex http://www.developersdex.com ***



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Macros - Automatically highlighting rows

Thanks,

This is exactly what I needed.

"Mike H" wrote:

Hi,

You don't need a macro. select all the rows where this will apply then
Format|Conditional Format
select Formula is
Enter the formula
=$D2="No"
Pick a colour
OK

Change the 2 to the top row of your range.

Mike

"Dolores" wrote:

Is there a macro or formula that I can use to automatically highlight row
once a comment is inserted. I included a sample below

Name Address contact Status
No

If I put no in the status comment, I would like to have the entire row be
highlighted red.

Is this possible?

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Macros - Automatically highlighting rows

Thanks,

Great suggestion.

"Orion Cochrane" wrote:

If you are going to highlight in red, make the text colour white so you can
still read your work.
--
I am running on Excel 2003, unless otherwise stated. Please rate posts so we
know when we have answered your questions. Thanks.


"Mike H" wrote:

Hi,

You don't need a macro. select all the rows where this will apply then
Format|Conditional Format
select Formula is
Enter the formula
=$D2="No"
Pick a colour
OK

Change the 2 to the top row of your range.

Mike

"Dolores" wrote:

Is there a macro or formula that I can use to automatically highlight row
once a comment is inserted. I included a sample below

Name Address contact Status
No

If I put no in the status comment, I would like to have the entire row be
highlighted red.

Is this possible?

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
Highlighting the lowest cell automatically Frances Holden Excel Discussion (Misc queries) 1 January 7th 08 02:48 PM
Automatically highlighting cells sponger02 Excel Discussion (Misc queries) 1 May 24th 07 08:05 PM
How do I stop mouse from highlighting cells automatically Tibber60 Excel Discussion (Misc queries) 0 April 24th 06 02:39 PM
Why does a file open up automatically when only highlighting the . L. DeRita Excel Discussion (Misc queries) 0 February 22nd 05 02:47 PM
Automatically highlighting rows which contains certain data Ian M[_2_] Excel Programming 2 May 3rd 04 03:41 AM


All times are GMT +1. The time now is 12:35 AM.

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"