+ Reply to Thread
Results 1 to 10 of 10

Delete Rows in Multiple Sheets Problem

  1. #1
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Post Delete Rows in Multiple Sheets Problem

    Hi guys, I have a Working codes here that can Delete an Entire Row in Multiple Selected Sheets, My Problem is I got too many Confirmation MsgBox because it loops through different worksheets.

    I want to have a total number of rows to be deleted in only 1 Confirm MsgBox.

    See my Sample Image below:
    1.PNG

    2.PNG

    3.PNG

    Here is my Codes Below:
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Delete Rows in Multiple Sheets Problem

    Add :
    Application.DisplayAlerts = False
    like that

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Delete Rows in Multiple Sheets Problem

    Quote Originally Posted by lotuxel View Post
    Add :
    Application.DisplayAlerts = False
    like that

    Please Login or Register  to view this content.
    Hi lotuxel,

    Nothing happens but thanks for the reply.

  4. #4
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Delete Rows in Multiple Sheets Problem

    Untested,

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  5. #5
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Delete Rows in Multiple Sheets Problem

    Quote Originally Posted by JapanDave View Post
    Untested,

    Please Login or Register  to view this content.
    Hi JapanDave

    The codes is not working.

    it only shows the last confirmation message.

    and when you did not select multiple sheets, it doesnt show confirmation message.

    btw. Thanks for the response.

  6. #6
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Delete Rows in Multiple Sheets Problem

    That was a typo with it not working on 1 selected sheet. Try the below code.

    As for you other statement. If it is all or nothing then the below code is you best bet.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Delete Rows in Multiple Sheets Problem

    Quote Originally Posted by JapanDave View Post
    That was a typo with it not working on 1 selected sheet. Try the below code.

    As for you other statement. If it is all or nothing then the below code is you best bet.

    Please Login or Register  to view this content.
    Using the codes you provide I got a Run-Time error '91'
    Object variable or with block variable not set

    on line
    Please Login or Register  to view this content.

  8. #8
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Delete Rows in Multiple Sheets Problem

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Delete Rows in Multiple Sheets Problem

    Quote Originally Posted by JapanDave View Post
    Please Login or Register  to view this content.
    Hi JapanDave

    The confirmation message doesnt have the total number of rows to be deleted. it just say: "Would you like to delete found Rows on selected sheets?"

    I need a confirmation message that have/compute the total number of rows to be deleted.

  10. #10
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Delete Rows in Multiple Sheets Problem

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to delete rows with specific value for multiple sheets
    By cnj_zeng in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-14-2012, 04:29 PM
  2. Find then Delete rows from multiple sheets?
    By gronnies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2010, 07:07 PM
  3. Delete the same rows on multiple sheets
    By mon whimpy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-16-2008, 07:21 AM
  4. Delete rows in multiple sheets without loop?
    By MTT727 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2005, 10:05 AM
  5. Delete Rows from multiple Sheets.
    By drbobsled in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2005, 09:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1