#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default searching

hi folks

in column J i have either True or False i want to search column J and if i
find True i want to change the coresponding cell in column A to Green any
ideas

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default searching

Use Conditional Format. Say your data starts in Row 1. With A1 selected,
click on Format - Conditional Formatting. In the first block, select
"Formula is:". In the block to the right, enter =J1=TRUE. Select the color
you want for the formatting.
Drag cell A1 down as far as you expect Column J data to go. Done. HTH
Otto
"Arnie" wrote in message
...
hi folks

in column J i have either True or False i want to search column J and if i
find True i want to change the coresponding cell in column A to Green any
ideas

thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default searching

Arnie
Here is the code in a self-standing macro. You will have to extract the
meaningful parts and insert them into your macro. HTH Otto
Sub ChangeColor()
Dim RngJ As Range
Dim i As Range
Set RngJ = Range("J1", Range("J" & Rows.Count).End(xlUp))
For Each i In RngJ
If i.Value = True Then _
Cells(i.Row, 1).Interior.ColorIndex = 4
Next i
End Sub


"Arnie" wrote in message
...
i'm going to need the code for this as when i spit this spreadsheet out
from
Access and run my macro(in Excel) to do what i want it to do the
conditional
formating is lost. if i re-select the range A1:A300 and click on
conditional
formating the condition is there but has now changed to =L1=TRUE etc. So i
need to run this formating at the end of my auto open macro

"Otto Moehrbach" wrote:

Use Conditional Format. Say your data starts in Row 1. With A1
selected,
click on Format - Conditional Formatting. In the first block, select
"Formula is:". In the block to the right, enter =J1=TRUE. Select the
color
you want for the formatting.
Drag cell A1 down as far as you expect Column J data to go. Done. HTH
Otto
"Arnie" wrote in message
...
hi folks

in column J i have either True or False i want to search column J and
if i
find True i want to change the coresponding cell in column A to Green
any
ideas

thanks in advance






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
Searching for... FC Excel Discussion (Misc queries) 2 October 13th 07 04:31 PM
Set Up Searching FC Setting up and Configuration of Excel 0 October 7th 07 01:21 AM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
VBA searching kirkm[_6_] Excel Programming 8 September 17th 06 06:13 PM
Searching LC[_3_] Excel Programming 1 July 25th 03 12:29 AM


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