Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
Anyone have any ideas why this code does not recognize the decimal. I'm trying to test a column to make sure it equals zero. However for some reason this code does not recognize the trailing decimals. When I change IF SUMRNG < 0 then to IF SUMRNG < 0.00 VBA alters it to 0#. If the column is out of balance .49 cents it does not activate the MSGBOX but if it's out .50 cents then the MSGBOX is activated. Appreciate your assistance, Ron With Selection SumRng = Application.WorksheetFunction.Sum(Selection) If SumRng < 0 Then MsgBox "Out of Balance, Please review and make the necessary corrections. Balance should equal ZERO. " & SumRng End If End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
recognizing double digit numbers in code | Excel Discussion (Misc queries) | |||
Code Not Recognizing Value in Drop-Down Menu | Excel Programming | |||
Data Validation - Code Not Recognizing Something | Excel Programming | |||
Recognizing a whole number instead of a decimal | Excel Programming | |||
Recognizing something is being pasted in code. | Excel Programming |