MsgBox Issue

nancybrown

Well-known Member
Joined
Apr 7, 2005
Messages
868
I would copy and paste this, but I'm not sure how, so I'll do my best to explain.

I have an excel spreadsheet. When a number is entered into a field that is less than .5, a Microsoft Excel msgbox window pops up with an error message that the user must enter increments of .5 . . . but I can't find where this rule is created . . I've checked conditional formatting . . . vba code . . . can anyone guide me on how find where I can find this so I can modify it please?

NB
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Buck,

Sounds like there is a data validation rule in place?

With cell selected click Data tab DataValidation and take a look / amend as required.
 
Upvote 0
in the Worksheet change event...you can tell where and what they entered then warn them

Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
vChr = right(activecell.value ,1)
if vChr <> 5 and vChr <> 0 then
   msgbox "You must enter in increments of .5",vbcritical,"Error"
end if
end sub
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

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