Maybe?
Sub cajand()
Dim rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "Kalkyl"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Markera de celler du vill retunera/ta bort:", xTitleId, WorkRng.Address, Type:=8)
Set WorkRng = WorkRng.SpecialCells(xlCellTypeConstants, xlNumbers)
For Each rng In WorkRng
If rng.Column > 13 And rng.Column < 24 Then
xValue = Cells(rng.Row, "Q").Value
If xValue > 0 Then
Cells(rng.Row, "Q").Value = xValue * -1
End If
yValue = Cells(rng.Row, "R").Value
If yValue > 0 Then
Cells(rng.Row, "R").Value = yValue * -1
End If
End If
Next
End Sub
Bookmarks