Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a userform where the person puts in totals
How do I get excel to not allow a total more than 180 in a textbox. Also is there a chance of excel giving a warning about this total Thanks in advance Greg |
#2
![]()
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Greg B" wrote in message
... I have a userform where the person puts in totals How do I get excel to not allow a total more than 180 in a textbox. Also is there a chance of excel giving a warning about this total Hi Greg, Here's one very simplified way to accomplish this: Private Sub TextBox1_Change() If Val(TextBox1.Text) 180 Then MsgBox "180 is the maximum allowed." TextBox1.Text = "" End If End Sub -- Rob Bovey, Excel MVP Application Professionals http://www.appspro.com/ * Take your Excel development skills to the next level. * Professional Excel Development http://www.appspro.com/Books/Books.htm |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting Text in cells that already have text entered | Excel Worksheet Functions | |||
copying text within a text box and losing formatting | Excel Discussion (Misc queries) | |||
Formula Text String: Formatting Text and Numbers? | Excel Discussion (Misc queries) | |||
Conditional Formatting based on text within a cell w/ text AND num | Excel Worksheet Functions | |||
Conditional Formatting based on Text within Text | Excel Discussion (Misc queries) |