Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Extend a macro rule for setting color and specific text

Hello,

I'm using a macro for setting a field color based on a specific text in the same cell.

Part of the Macro:
If cell.Value Like "*XXX*" Then cell.Interior.ColorIndex = 24

Question:
I want to extend my macro to check also a text which is in the same row but 2 columns before. (So the macro should be: Active cell.value like "*XXX*" and 2 columns to left cell.value "YYY" Then.......).

For another part I also want to set a specific text in the same row 2 columns to the right. (So the macro should be: Then cell.Interior.ColorIndex = 24 and 2 columns to the right set cell value "ZZZ").

Can please somebody help me out.

regards and thanks !
Johan

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
Extend Formula, but not Color Flipper Excel Discussion (Misc queries) 2 August 28th 09 04:34 PM
Conditional Formatting - Icon Rule - Three Color Arrows Baris Excel Discussion (Misc queries) 0 July 29th 09 09:08 PM
Setting a cell rule phowe43 Excel Discussion (Misc queries) 3 January 2nd 09 02:54 PM
Change text color of specific date range by macro in Excel Morgan LeFay Excel Programming 1 August 3rd 06 07:51 PM
text conversion in cells and setting color in rows.....(excel 97) Jeremy Smith Excel Programming 0 September 9th 03 01:25 AM


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