Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome!
-- Biff Microsoft Excel MVP "Koomba" wrote in message ... Thanks for taking me a step further -- Thanks from Salt Spring "T. Valko" wrote: Is the Total cell one of the cells cleared in your macro? If so, why clear (delete) the formula? Just write the formula like this: =IF(SUM(.....)=0,"",SUM(.....)) And remove that cell reference from your macro. Also, you can simplify the macro to: Sub NewSalesOrder() Range("B2,B4:B13,E14").ClearContents End Sub -- Biff Microsoft Excel MVP "Koomba" wrote in message ... I am using a Custom Sales Order Template. I use a macro to clear contents (from previous sales order). I use SUM formula in the TOTAL cell and wonder if I can have the TOTAL cell show as empty (but leave formula intact) after macro clears contents. I am being picky here, I know. Here is Macro: Sub NewSalesOrder() ' ' NewSalesOrder Macro ' Clears Sales Order for new data entry ' ' Keyboard Shortcut: Ctrl+b ' Range("B2").Select Selection.ClearContents Range("B4:B13").Select Selection.ClearContents Range("E14").Select Selection.ClearContents End Sub -- Thanks from Salt Spring |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
format a cell with a formula so an empty reference cell shows blan | Excel Discussion (Misc queries) | |||
formula, move to previous cell when the current cell=0 or empty | Excel Discussion (Misc queries) | |||
How do I leave formula cell blank if 2nd reference cell is empty? | Excel Discussion (Misc queries) | |||
How do I set a cell to "Empty" so that it does not display in a ch | Charts and Charting in Excel | |||
Display a dialog box if cell is empty | Excel Discussion (Misc queries) |