View Single Post
 
Old 07-12-2017, 08:12 AM
Mikedk64 Mikedk64 is offline Windows 10 Office 2010 64bit
Novice
 
Join Date: Jul 2017
Posts: 4
Mikedk64 is on a distinguished road
Default

*Logit:

Where should I insert this code, and can i just copy paste it, or do I need to modify it
Quote:
Originally Posted by Logit View Post
Code:
Option Explicit

Sub Test3()
Dim answer As Variant
  answer = MsgBox("Are you certain these cells are to be deleted ?", vbYesNo + vbQuestion, "Delete Cells ?")
  If answer = vbYes Then
      Call Test1
   Else
     Exit Sub
End If
End Sub

Sub Test1()
   'Code here to delete or clear cells
   MsgBox "Running macro"
End Sub
Reply With Quote