Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2017, 08:12 AM
Mikedk64 Mikedk64 is offline msgbox when deleting cells Windows 10 msgbox when deleting cells Office 2010 64bit
Novice
msgbox when deleting cells
 
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
msgbox when deleting cells Trigger Beep or MsgBox when key combo accidentally pressed NotQuiteANovice Word VBA 1 04-07-2017 05:41 PM
msgbox when deleting cells Deleting rows based on the text in certain cells VBA ThisGuyJohn Excel Programming 5 02-03-2017 03:16 PM
msgbox when deleting cells On Open MsgBox for use in Template sent out to colleagues to gather information Lancashire Lad Word VBA 2 10-26-2015 10:22 AM
Deleting info from specific table cells jamierbooth Word VBA 3 07-29-2014 03:20 PM
msgbox when deleting cells Make MsgBox appear... Jamtart PowerPoint 3 09-01-2012 08:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft