Results 1 to 10 of 15

Thread: VBA Confirm Message Before Deleting Row

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Junior Member
    Join Date
    Jul 2013
    Posts
    18
    Rep Power
    0
    Hi Admin

    The code works! thank you so much for your fast response. while exploring it more, I found another problem.

    The code loops through different/multiple worksheet that is selected by the user. but using your provided codes when I delete rows from different or MULTIPLE SELECTED WORKSHEETS it only compute the total number of rows in each worksheet. not the total number of rows deleted. You can try it yourself, try to select multiple worksheet and use the macro to delete. Sorry I cannot provide anymore Images. I dont know what happened. I cannot upload anymore

    The problem is with the confirmation MsgBox again. It can only display the total number of rows in each worksheet. but not the total number of rows that should be deleted.

    for example:

    in Sheet1

    MsgBox1 : would you like to delete (1) rows

    in Sheet2

    MsgBox2 : would you like to delete (2) rows

    in Sheet3

    MsgBox3 : would you like to delete (3) rows

    Last MsgBox
    MsgBox4 : number of deleted rows (6)
    Last edited by mackypogi; 08-07-2013 at 02:36 PM.

Similar Threads

  1. Deleting a Row with a specific data shown.
    By jffryjsphbyn in forum Excel Help
    Replies: 1
    Last Post: 07-18-2013, 03:41 PM
  2. VBA code message box added
    By rich_cirillo in forum Excel Help
    Replies: 6
    Last Post: 07-08-2013, 05:19 PM
  3. Deleting Records Using Join
    By MMishra in forum MS-Access Tips And Tricks
    Replies: 0
    Last Post: 04-24-2013, 04:06 PM
  4. VBA Show Message On Sheet Activate
    By Howardc in forum Excel Help
    Replies: 2
    Last Post: 10-29-2012, 08:17 PM
  5. Deleting blank rows
    By Rasm in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 04-14-2011, 03:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •