+ Reply to Thread
Results 1 to 3 of 3

Make cells negetive amount

  1. #1
    ggant
    Guest

    Make cells negetive amount

    I want to make any value that is put into a cell to be a negitive value. So
    if 5.00 is put in it's value shows as negetive value. It this possible?

  2. #2
    Bob Phillips
    Guest

    Re: Make cells negetive amount

    This works on range H1:H10, change to suit

    Private Sub Worksheet_Change(ByVal Target As Range)
    Const WS_RANGE As String = "H1:H10"

    On Error GoTo ws_exit:
    Application.EnableEvents = False
    If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
    With Target
    If .Value > 0 Then .Value = -.Value
    End With
    End If

    ws_exit:
    Application.EnableEvents = True
    End Sub

    'This is worksheet event code, which means that it needs to be
    'placed in the appropriate worksheet code module, not a standard
    'code module. To do this, right-click on the sheet tab, select
    'the View Code option from the menu, and paste the code in.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "ggant" <ggant@discussions.microsoft.com> wrote in message
    news:2D728C96-AB9C-48FA-A2A0-633C1166DC06@microsoft.com...
    > I want to make any value that is put into a cell to be a negitive value.

    So
    > if 5.00 is put in it's value shows as negetive value. It this possible?




  3. #3
    CLR
    Guest

    RE: Make cells negetive amount

    If you only want the display to APPEAR to be negative, then you can just do a
    custom format of -#### on the cell. The actual number tho, if used in
    other formulas will be positive.

    Vaya con Dios,
    Chuck, CABGx3



    "ggant" wrote:

    > I want to make any value that is put into a cell to be a negitive value. So
    > if 5.00 is put in it's value shows as negetive value. It this possible?


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1