If not 100% Then...

Kentetsu

Well-known Member
Joined
Jan 22, 2004
Messages
520
Okay,

It sure seems like this should be simple. I've got an entry form, where the user will enter audit information. If the score for the audit is less than 100%, then they need to enter a reason for the failure. However, the code below will still pop the message even if the score is 100%.

I think this is because K4 is formatted as a percentage so that it will show the user what the final audit score was. If I format it as just a number then it works fine. But I'd rather have the user see this as a percentage.

Any suggestions?

Code:
If Sheets("ObsEntry").Range("K4").Value < 100 Then
    If Sheets("ObsEntry").Range("J4") = "" Then
        MsgBox "Please enter a Comment Explaining Failed Checks", vbOKOnly
        Exit Sub
    End If
End If

Thanks!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Well slap my *** and call me Sally! I just knew it'd be something simple like that. Thanks a bunch Dave Patton! :)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top