Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Are you sure" Prompt
Open sheet with certain fields with 0 as the default
values, but if you put $$ in them and later try to over write them get a "are you sure" prompt. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Are you sure" Prompt
Was that a question or a statement?
Is it your desire to achieve this behavior? Is it your desire to avoid this behavior? "Dan" wrote: Open sheet with certain fields with 0 as the default values, but if you put $$ in them and later try to over write them get a "are you sure" prompt. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
"Are you sure" Prompt
Worksheet code:
Private blnTrigger As Boolean Private Const cID = "$$" Private Sub Worksheet_Change(ByVal Target As Range) If blnTrigger Then If MsgBox("Are you sure?", vbOKCancel, "Sure?") = vbCancel Then Application.EnableEvents = False Target.Value = cID Application.EnableEvents = True End If End If End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) blnTrigger = (Target.Value = cID) End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "Dan" wrote in message ... Open sheet with certain fields with 0 as the default values, but if you put $$ in them and later try to over write them get a "are you sure" prompt. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
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) | |||
is it possible to disable "save" prompt in excel file on web server? | Excel Discussion (Misc queries) | |||
How to avoid "update links" startup prompt? | Excel Discussion (Misc queries) | |||
The "i" prompt when opening a worksheet containing links | Excel Programming | |||
How can I get "File Close" to prompt me to "Save Changes" ?? | Excel Programming |