Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DW DW is offline
external usenet poster
 
Posts: 26
Default Hide a Cell Value

Hey All,

I have a worksheet where I need to hide the contents of a cell (we'll say
A2)....such as making it all asterisks (*) just like a password field. But,
when another cell's (we'll say B1) value changes, A2 needs to reveal it's
true data.....and then when B1 is blank again, A2 needs to revert to
asterisks.

Example,

A1 B1 A1 B1
hello hello Joe

A2 B2 A2 B2
*** What do you know?

Anyway to do this? Thanks for any assistance.

Don


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default Hide a Cell Value

If you don't need to /hide/ hide it (from users) the following will work in A2.

=IF(B1="Joe","What do you know?","***")



--
-SA


"DW" wrote:

Hey All,

I have a worksheet where I need to hide the contents of a cell (we'll say
A2)....such as making it all asterisks (*) just like a password field. But,
when another cell's (we'll say B1) value changes, A2 needs to reveal it's
true data.....and then when B1 is blank again, A2 needs to revert to
asterisks.

Example,

A1 B1 A1 B1
hello hello Joe

A2 B2 A2 B2
*** What do you know?

Anyway to do this? Thanks for any assistance.

Don



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Hide a Cell Value

hi
not too sure you can do it with astericks but you might be able to change
the font to a font that uses symbles instead of letters.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set Target = Range("B1")
If Target = "" Then
Range("A2").Font.Name = "marlett"
Else
Range("A2").Font.Name = "arial" 'or your favorite
End If
End Sub

there are other fonts like wingdings that you could use.
another way might be to use conditional formating to black out the cell.
in a2 enter conditonal fomating like
formula is ....=b20....format cell background to black.

my thoughts
Regards
FSt1


"DW" wrote:

Hey All,

I have a worksheet where I need to hide the contents of a cell (we'll say
A2)....such as making it all asterisks (*) just like a password field. But,
when another cell's (we'll say B1) value changes, A2 needs to reveal it's
true data.....and then when B1 is blank again, A2 needs to revert to
asterisks.

Example,

A1 B1 A1 B1
hello hello Joe

A2 B2 A2 B2
*** What do you know?

Anyway to do this? Thanks for any assistance.

Don



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Hide a Cell Value

Thanks FSt1.....This did the trick.............

Don
"FSt1" wrote in message
...
hi
not too sure you can do it with astericks but you might be able to change
the font to a font that uses symbles instead of letters.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set Target = Range("B1")
If Target = "" Then
Range("A2").Font.Name = "marlett"
Else
Range("A2").Font.Name = "arial" 'or your favorite
End If
End Sub

there are other fonts like wingdings that you could use.
another way might be to use conditional formating to black out the cell.
in a2 enter conditonal fomating like
formula is ....=b20....format cell background to black.

my thoughts
Regards
FSt1


"DW" wrote:

Hey All,

I have a worksheet where I need to hide the contents of a cell (we'll say
A2)....such as making it all asterisks (*) just like a password field.
But,
when another cell's (we'll say B1) value changes, A2 needs to reveal it's
true data.....and then when B1 is blank again, A2 needs to revert to
asterisks.

Example,

A1 B1 A1 B1
hello hello Joe

A2 B2 A2 B2
*** What do you know?

Anyway to do this? Thanks for any assistance.

Don





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
How can I change the size of a cell and hide what is in the cell? Elisabeth Excel Worksheet Functions 7 January 3rd 08 07:43 PM
auto-hide rows, cell format (# and @), update cell refs, shade cel Mo2 Excel Discussion (Misc queries) 0 April 17th 07 03:44 AM
Hide cell values based on a condition in another cell Cat Excel Worksheet Functions 1 January 4th 07 07:21 AM
How to hide a particular cell....... PSL Excel Discussion (Misc queries) 1 July 18th 06 01:24 PM
Hide row if cell = 0 [email protected] Excel Worksheet Functions 1 June 28th 06 06:35 PM


All times are GMT +1. The time now is 06:39 PM.

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"