Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell to stay same
If I enter a 2 in a cell, I want it to always show as a -2.
Anytime I type 2, if comes in as -2. Is there a way to do this? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell to stay same
I want the cell to always be a negative, I misunderstood what was asked me.
Thanks, "Pammy" wrote: If I enter a 2 in a cell, I want it to always show as a -2. Anytime I type 2, if comes in as -2. Is there a way to do this? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
cell to stay same
Only with VBA event code or a helper cell.
Helper cell formula. =A1*-1 Event code. Private Sub Worksheet_Change(ByVal Target As Range) Const WS_RANGE As String = "A1:A10" On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target .Value = .Value * -1 End With End If ws_exit: Application.EnableEvents = True End Sub Gord Dibben MS Excel MVP On Mon, 9 Nov 2009 12:09:01 -0800, Pammy wrote: I want the cell to always be a negative, I misunderstood what was asked me. Thanks, "Pammy" wrote: If I enter a 2 in a cell, I want it to always show as a -2. Anytime I type 2, if comes in as -2. Is there a way to do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert a picture into an excel cell & have it stay there | Excel Discussion (Misc queries) | |||
how to inset a picture in a cell and make it stay in that cell | Excel Discussion (Misc queries) | |||
How do I post a picture into a cell and have it stay there? | Excel Worksheet Functions | |||
How do you stay in cell and get to next line??? | Excel Discussion (Misc queries) | |||
Why data in cell doesn't stay aligned with cell borders when prin. | Excel Discussion (Misc queries) |