+ Reply to Thread
Results 1 to 3 of 3

msgbox on duplicate sheets

  1. #1
    Registered User
    Join Date
    08-27-2010
    Location
    Mexico
    MS-Off Ver
    Excel 2003
    Posts
    5

    msgbox on duplicate sheets

    Good morning, i have the following code:

    Please Login or Register  to view this content.
    what i need it to do is just inform the user when there was already a sheet with that name (corrected by using sh.Name = sName)

    However when there was not a duplicate theres no need for the msgbox.

    Also this code is called by

    Please Login or Register  to view this content.
    but when i run it the msgbox popsup regardless of duplicate or not

    Thanx in advance for your help.

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: msgbox on duplicate sheets

    Hi

    'On Error Resume Next' ignores all error messages and continues with the next line of code. Try the following:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-27-2010
    Location
    Mexico
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: msgbox on duplicate sheets

    Awesome aswesome awesome!!!!!!!!!!

    Thank you x10000

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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