Hi Pete, Bernard and Luke
I am so sorry that my question isn't clear and thanks for all your answers.
I would like to enter 100 in A1, then it returns 35 in cell A1 (same cell)
as soon as I move the cursor to another cell. Here is a list that I would
like to work with:
100 will change to 35
97.14 34
94.29 33
91.42 32
----------------------------------------------
In the past, I had a similar question and got the answer(code) below. It
worked very well. However, this time I have a list of numbers instead of
"what ever I enter divide by 10"
Ex: if I enter 100, it will become 10
If I enter 90, then it become 9
Please fix the code so that I can use it or please advice
Thank you very much!
Chi
-----------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range(Target(1).Address), _
Range("C:C, D
![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
, E:E")) Is Nothing Then Exit Sub
On Error GoTo endit
Application.EnableEvents = False
With Target
.Value = .Value / 10
End With
endit:
Application.EnableEvents = True
End Sub
Right-click on the sheet tab and "View Code"
Copy/paste the above into that sheet module.
Alt + q to return to the Excel window.