Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Conditional Formatting

I want to create a workbook, in which I will key in 1 and that particular
cell will be converted to X with red back ground. Is this possible should I
use conditional formating or Need to put some formula with true/false
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

if you want to convert the value from 1 to X then you'ld need to use a
worksheet_change event macro e.g.

---
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$A$1" And Target.Value = 1 Then
Target.Value = "X"
Target.Interior.ColorIndex = 3
ElseIf Target.Address = "$A$1" Then
Target.Interior.ColorIndex = xlNone
End If
End Sub
---

to use the code, right mouse click on the sheet you want to do this in and
choose view code, copy & paste the code directly into the white area on the
right, changing $A$1 to your actual cell reference.

To test, choose ALT & F11 to switch back to the workbook and type 1 into the
cell.

Cheers
JulieD

" wrote in
message ...
I want to create a workbook, in which I will key in 1 and that particular
cell will be converted to X with red back ground. Is this possible should
I
use conditional formating or Need to put some formula with true/false



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
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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