Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel hide cell contents 1

Status
Not open for further replies.

vandaliarental

Technical User
Jul 17, 2000
84
0
0
US
Is there a way to hide the contents of a cell depending on a check box?

I have a spreadsheet showing a 'Total:' & a sum of the above cells. If the user unchecks the total check box, I'd like to hide the word Total & the sum amount. There may be other information in the row, so I can't hide the entire row.

Thanks in advance!
Connie
 
Could you make it seem invisible by changing the font to the background color, white for instance?
Code:
Set rng = ActiveSheet.Range("a3, b3")
rng.Font.Color = RGB(255, 255, 255)
Barbara
 

FYI...
Code:
rng.Font.Color = vbWhite

Skip,
[sub]
[glasses] [red]Be advised:[/red]We know Newton's 3 Laws. But did you hear about the [red]FOURTH???[/red]
Only ONE fig per cookie![tongue][/sub]
 
Or perhaps for maximum flexibility:
Code:
With rng
  .Font.Color = .Interior.Color
End With


Regards,
Mike
 
So many ideas...so little time!!

Thanks for all of them!

Connie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top