Re: Excel Decimal Question
You could use the _Change event of the worksheet, trapping for changes to that column, and then divide the value.
VB Code:
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
'in this example I am checking for
'values in column "D"
'You should ammend to reflect your column
If .Column = 4 Then
'Only run the code on numeric values
If IsNumeric(.Value) Then
Application.EnableEvents = False
'Divide the number
.Value = .Value / 1000000000
'Rest the number format (in case of pasted values)
.NumberFormat = "#,##0.000000000"
Application.EnableEvents = True
End If
End If
End With
End Sub