View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Transform positive numbers into negative

try
Sub changepostoneg()
For Each c In Range("a1:a10")
If c 0 Then c.Value = -c
Next
End Sub


--
Don Guillett
SalesAid Software

"Robert" wrote in message
oups.com...
Hi All,

Does anyone know which statement to use for changing a range of
positive numbers (say range("A1:A10") into negative?

Thanks again!

Rgds,
Robert