Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a form that does not allow users to input a "#"
symbol in three cells. The code below accomplishes this. Trouble is using the "delete" key in any cell anywhere in my form pulls up the MsgBox from my "Private Sub Worksheet" below. Any help would be appreciated. Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error Resume Next Application.EnableEvents = False If Union(Target, Me.Range("AH3,I11,T11")).Address = Me.Range("AH3,I11,T11").Address _ And InStr(1, Target, "#") 0 Then Target.Select MsgBox "The following symbols are not allowed in this field! # " Target = "" End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Excel "Move or Copy" and "Delete" sheet functions | Excel Worksheet Functions | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
How do I make a "Worksheet_Change event" to show any changes to cells? | Excel Worksheet Functions | |||
Worksheet_Change Event "Circular Reference" | Excel Programming |