I need to convert a cell value to the absolute value through VBA (if negative, make it positive)
A formula needs to be converted into its value (like pressing F9 on any formula to makeit the result)
I need to convert a cell value to the absolute value through VBA (if negative, make it positive)
A formula needs to be converted into its value (like pressing F9 on any formula to makeit the result)
Last edited by excelcandy; 10-15-2013 at 03:43 PM.
if you want to make a numeric value absolute, maybe use abs function. Abs(Range("A3").value))
Thanks, and part 2 ?
I don't understand your part 2 sorry.
when you select the content within a cell and press F9 it deletes the formula and inserts the result
example
before
6*2
after
12
-> no formula left, vanishes
Last edited by excelcandy; 10-09-2013 at 04:29 PM.
is not working! just goes red - syntax error![]()
Abs(Range("A3").value))
Can you post your workbook?
no, sorry this is not working. Abs(Range("A3").value)) does not work
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks