Hello,
I was wondering if I could get some help. I have written a simple macro to convert a range from cm to inches (see below). The draw back to this macro is that I have a simple minus formula in the range that is being pasted as value when I run the macro. I need the macro to not paste value the formula but still convert the formulas results to inches.
For Each cell In Range("C10:C250")
If cell.Interior.Color = RGB(204, 192, 218) Then
Else
If IsEmpty(cell) Then
Else
If IsNumeric(cell) Then
cell = WorksheetFunction.Convert(cell.Value, "cm", "in")
End If
End If
End If
Next cell
Your help will be greatly appreciated
Enrico
I was wondering if I could get some help. I have written a simple macro to convert a range from cm to inches (see below). The draw back to this macro is that I have a simple minus formula in the range that is being pasted as value when I run the macro. I need the macro to not paste value the formula but still convert the formulas results to inches.
For Each cell In Range("C10:C250")
If cell.Interior.Color = RGB(204, 192, 218) Then
Else
If IsEmpty(cell) Then
Else
If IsNumeric(cell) Then
cell = WorksheetFunction.Convert(cell.Value, "cm", "in")
End If
End If
End If
Next cell
Your help will be greatly appreciated
Enrico