Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you have numbers already in a range, select the range and run this macro
Sub TryNow() Dim myCell As Range For Each myCell In Selection If IsNumeric(myCell.Value) And (Not IsEmpty(myCell)) Then myCell.Value = -Abs(myCell.Value) End If Next myCell End Sub HTH, Bernie MS Excel MVP "Please help James" wrote in message ... Does anyone know how to create a code that would convert all numbers entered into a range of cells into a negative number? -ABS Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting positive numbers to negative numbers | Excel Discussion (Misc queries) | |||
Converting Negative Numbers to Positive | Excel Discussion (Misc queries) | |||
converting hex values to negative numbers | Excel Discussion (Misc queries) | |||
Converting positive numbers to negative numbers | Excel Worksheet Functions | |||
converting text to negative numbers! | Excel Worksheet Functions |