![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Plano, Texas
Posts: 29
|
I know this is an elementary question, but I am a very new developer with a very complex report to write. I am attempting to do this in a Macro and I am unsure of the code. I have referenced John Walkenbach's books, but I am still stumped.
Any info will be greatly appreciated. |
|
|
|
|
|
#2 | |
|
New Member
Join Date: Apr 2002
Location: Plano, Texas
Posts: 29
|
Quote:
|
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try the following:
If ActiveCell.Value = 0 Then ActiveCell.Value = "" I think this is what you want.
__________________
Kind regards, Al Chara |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
you can hide all zero values by going into tools options and deselecting the "zero values" box. Or in VBA the equivilent is... ActiveWindow.DisplayZeros = False Or if you want to do it in vba for a single cell, if range("a1")=0 then range("a1")="" or... if cells(rowx,colx)=0 then cells(rowx,colx)="" |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: Kansas
Posts: 5
|
Cells.Replace "0", Null
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Location: Plano, Texas
Posts: 29
|
Wow!! That was fast.
Thanks to all. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|