Why does this Macro chop off the first number in the cell? It works fine if it is a formula though.
Posted by Tim Johnson on December 28, 2001 8:01 AM
Sub NEGATIVE2()
'
' NEGATIVE2 Macro
' Macro recorded 12/28/01 by More Beer!!!
'
'
Dim CellContents As String
For Each Cell In Selection
CellContents = Right(Cell.FormulaR1C1, Len(Cell.FormulaR1C1) - 1)
Cell.FormulaR1C1 = "=(" & CellContents & ")*-1 "
CellContents = ""
Next Cell
End Sub