Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Cell Formatting

Hi

This must be simple but just can't get my head around it.

I have VB code that runs through a number of cells and
checks against the value of another set of cells. What I
would like to do is change the background color of a cell
to yellow if the call matches. I thought I had tried
everything but does not seem to like anything I do.

This is part of the code:

While Not Cells(RwIndex, CoIndex).Value = ""
ChkValue = Cells(RwIndex, CoIndex).Value
Select Case ChkValue
Case Cells(2, 4)
Cells(RwIndex, CoIndex).?????????

I would appreciate your help.

Many Thanks

Steve
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Cell Formatting

Thanks Chip

I'm sure I tried that.

Still, Appreciate you help.

If I wanted my spreadsheet to continuously check and then
Highlight, can this be done?

At the moment I have this code attached to a button so it
is a manual process.

Best Regards

Steve
-----Original Message-----
Steve,

You can change the background color of the cell to

yellow with code like

Cells(RwIndex, CoIndex).Interior.ColorIndex = 3

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Steve" wrote in

message
...
Hi

This must be simple but just can't get my head around

it.

I have VB code that runs through a number of cells and
checks against the value of another set of cells. What

I
would like to do is change the background color of a

cell
to yellow if the call matches. I thought I had tried
everything but does not seem to like anything I do.

This is part of the code:

While Not Cells(RwIndex, CoIndex).Value = ""
ChkValue = Cells(RwIndex, CoIndex).Value
Select Case ChkValue
Case Cells(2, 4)
Cells(RwIndex, CoIndex).?????????

I would appreciate your help.

Many Thanks

Steve



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Cell Formatting

Steve,

You can use OnTime to schedule a macro to run every N seconds. See
www.cpearson.com/excel/ontime.htm for details and example code.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Steve" wrote in message
...
Thanks Chip

I'm sure I tried that.

Still, Appreciate you help.

If I wanted my spreadsheet to continuously check and then
Highlight, can this be done?

At the moment I have this code attached to a button so it
is a manual process.

Best Regards

Steve
-----Original Message-----
Steve,

You can change the background color of the cell to

yellow with code like

Cells(RwIndex, CoIndex).Interior.ColorIndex = 3

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Steve" wrote in

message
...
Hi

This must be simple but just can't get my head around

it.

I have VB code that runs through a number of cells and
checks against the value of another set of cells. What

I
would like to do is change the background color of a

cell
to yellow if the call matches. I thought I had tried
everything but does not seem to like anything I do.

This is part of the code:

While Not Cells(RwIndex, CoIndex).Value = ""
ChkValue = Cells(RwIndex, CoIndex).Value
Select Case ChkValue
Case Cells(2, 4)
Cells(RwIndex, CoIndex).?????????

I would appreciate your help.

Many Thanks

Steve



.



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
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM


All times are GMT +1. The time now is 11:43 AM.

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"