Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I am trying to include a Cancel option in a Worksheet_Change event, but I am having this error message when including the Cancel in the routine: €śCompile Error. Procedure declaration does not match description of even or procedure having the same name€ť My code is as follows: Private Sub Worksheet_Change(ByVal Target As Range, Cancel As Boolean) If Intersect(Target, Range("XInput")) Is Nothing Then Else ReConfigure = MsgBox("You have selected to change X Input" & Chr(10) & "Pricing needs to be re - calculated" & Chr(10) & "Do you want to proceed?", vbYesNo) If ReConfigure = vbNo Then Cancel = True End If End sub Could you please advice? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work | Setting up and Configuration of Excel | |||
Input box to cancel sub when Cancel is clicked. | Excel Programming | |||
Disabling 'Cancel' option when saving work (Yes/No/Cancel) | Excel Programming | |||
Cancel Macro is user selects 'cancel' at save menu | Excel Programming |