Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I am new to VBA and Excel programming and have come across the old problem of hiding 0's in cells with formulas. I know I can unset the zero values option, but I need to do this to 2 sheets in some 50 workbooks, so I want to do this in code. The workbooks are updated every so often using an Access database and VBA and the 2 sheets I am dealing with are added to each during the update process. I tried using Application.ActiveWindow.DisplayZeros = False but that gives me a Macro security warning when the file is opened and I don't want that, nor do I want to reduce the security to low to get around the warning. I tried using a format string, setting the numberFormat propery for the cells in question to "#,##0_);(#,##0)" but that only works for cells without a formula. Now I am stuck and don't know what else to try. I have found all kinds of solutions on the web, but they all involve setting something in Excel which I don't want to do, because I would have to do it in 50 or so workbooks. Does anyone here know how to hide zeros in a cell with a formula in VBA code? The formula is just a summation to total the values in the column, if that makes a difference. If you have some ideas you are willing to share or know for sure this can't be done, please reply to my post. I would be very appreciative for the help. Thanks URW |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
New Twist on Old Question-Averages | Excel Worksheet Functions | |||
If but with a twist:( | New Users to Excel | |||
Subtotal Question with a twist | Excel Discussion (Misc queries) | |||
Sum with a twist | Excel Discussion (Misc queries) | |||
A new twist to the validation drop-down width question. | Excel Discussion (Misc queries) |