Thread
:
Convert -ve numbers to +ve
View Single Post
#
3
Posted to microsoft.public.excel.programming
Don Guillett[_4_]
external usenet poster
Posts: 2,337
Convert -ve numbers to +ve
this should work
For Each c In Selection
c.Value = Abs(c)
Next
--
Don Guillett
SalesAid Software
"ali" wrote in message
...
I often have to work with sheets that contain awkward negative numbers
and it would make my life much easier if i could use a macro that would
search a column and convert any negative numbers into positive
numbers.
Can anyone help my with how i can do this please?
Alternatively if anyone can tell me how to convert positive numbers to
negative that would be equally useful.
Many thanks
------------------------------------------------
~~ Message posted from
http://www.ExcelTip.com/
~~View and post usenet messages directly from
http://www.ExcelForum.com/
Reply With Quote
Don Guillett[_4_]
View Public Profile
Find all posts by Don Guillett[_4_]