View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gotroots Gotroots is offline
external usenet poster
 
Posts: 114
Default Interupt code with message before it runs

I want to include the option to accept or cancel an action before the code
runs.

Private Sub Filldown_formula_Click()
Range("C10").Select
Selection.AutoFill Destination:=Range("C10:C7800"), Type:=xlFillDefault
Range("C10:C7800").Select
End sub


By including this msgBox which includes a €œYes€ or €œNo€ command buttons.

MsgBox "This will reset the formula, do you wish to proceed"

Thank you if you can help.