If the number is the same as it's integer and greater than zero, isn't it a whole number ?
if MYNUMBER >= 0 and int(MYNUMBER) = MYNUMBER then msgbox "I AM WHOLE"
Sorry, I goofed the 1st comment line ...
' Make sure you're in the correct workbook
Dim obj As Object
Set obj = Activeworkbook
' Make sure you're on the correct sheet
Worksheets("Sheet1").Select
' Add sample Values for this example
ActiveSheet.Range("B2").Value = 2...
' Make sure you're in the correct
Dim obj As Object
Set obj = Activeworkbook workbook
' Make sure you're on the correct sheet
Worksheets("Sheet1").Select
' Add sample Values for this example
ActiveSheet.Range("B2").Value = 2
ActiveSheet.Range("C2").Value = 3
' Insert a formula...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.