Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or,
Sub even_simpler() ActiveCell.Value = -ActiveCell.Value End Sub If you *always* want a negative number: Sub always_negative() ActiveCell.Value = -Abs(ActiveCell.Value) End Sub In article , JWolf wrote: Sub simple() activecell.value=activecell.value * -1 End Sub Tony wrote: For something that seems so simple, I cannot come up with a solution. I want to run a macro that will change the contents of a cell from a positive number to a negative number. For example, if I have 1000 in A1, I will select A1 and run a macro that will change its value to -1000. Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defining cells that macro will change | Excel Worksheet Functions | |||
Need formula to change cells from negative numbers to a zero. | Excel Worksheet Functions | |||
Format cells to change a number from a positive to negative | Excel Worksheet Functions | |||
change 2000 cells (negative numbers) into positive numbers | Excel Worksheet Functions | |||
How can I change positive numbers to negative, i.e. change 50 to - | Excel Discussion (Misc queries) |