You can create this sub in the sheet (go to Tools->Macro->Visual Basic
Editor and double click the sheet:
Private Sub Worksheet_Change(ByVal Target As Range)
For Each T In Target
If IsNumeric(T.Value) Then
If T.Value > 0 Then
T.Value = -T.Value
End If
End If
Next
End Sub
Fair enough. My method however DID change the value. Your method may
be preferable in the OP's case if they did not want the value to
change or if they did not want to have a macro.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.