Hiding $ on a spreadsheet

  • Thread starter Thread starter TinaF
  • Start date Start date
T

TinaF

I want to hide all dollar amounts on a spreadsheet prior to printing.
It's an estimating spreadsheet and, for one purpose, I need to print
it out with only items and quantities showing - no dollar amounts.

Any way to hide cells that are formatted as dollars?
 
Tina

Sub gowhite()
Dim c As Range
For Each c In Selection
If c.NumberFormat = "#,##0.00" Then
c.Font.ColorIndex = 2
End If
Next
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top