Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ms excel 1

Status
Not open for further replies.

ajyourpal

Technical User
Apr 3, 2002
3
0
0
US
Is there anyway to enter numbers with (2) decimal points without having to hit the decimal point key? For example, 12.45 requires to hit the decimal point key after the number 2.

Thanks
 
Here's another way.

Invoke Tools, Options, Edit and check the Fixed decimal check box. Make sure the spinner box next to it shows 2. Now, whenever you enter a number, a decimal point will be inserted before the last two digits.


Barborne
Worcester
UK
 
Hi,

I know, it’s a little bit long but it seem to work, so you could try it. In the module of your sheet add:

Private varDe As Variant
Private addT As String

Private Sub Worksheet_Activate()
varDe = 0
addT = "A1"
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
If IsNumeric(Target.Value) Then
varDe = Target.Value
addT = Target.Address
End If
End Sub


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range(addT) = varDe / 100
End Sub



Jean-Paul
Montreal
jp@solutionsvba.com
mtljp2@sympatico.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top