Thread
:
if more than 2 decimal places
View Single Post
#
3
Posted to microsoft.public.excel.programming
Sandy Mann
external usenet poster
Posts: 2,345
if more than 2 decimal places
One way:
If Int(Cells(1, 1) * 100) / 100 = Cells(1, 1) Then
MsgBox "Less"
Else
MsgBox "More"
End If
--
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
Replace @mailinator.com with @tiscali.co.uk
"gbink" wrote in message
...
How can I determine programmatically within VBA whether or not the
contents
of a cell have more than 2 decimal places? Anyone able to help?
Reply With Quote
Sandy Mann
View Public Profile
Find all posts by Sandy Mann