+ Reply to Thread
Results 1 to 5 of 5

Duplicate Sheets

  1. #1
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Duplicate Sheets

    I have written some code which asks the using for a name, selcet's a sheet, copy's the sheet, rename's the copied sheet then hide's the original sheet and makes the copied sheet with new name active.

    My problem is that I need some sort of code to check for sheets with duplicate names and if true ask the user to rename the sheet or maybe delete the sheet.


    Thanks

    Vetequk
    Last edited by Vetequk; 02-02-2009 at 07:50 AM.

  2. #2
    Registered User
    Join Date
    05-28-2008
    Posts
    13

    Re: Duplicate Sheets

    You can check if the name exists already in the given workbook

    Please Login or Register  to view this content.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Duplicate Sheets

    Use this User Defined Function
    Please Login or Register  to view this content.
    For example

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Duplicate Sheets

    This is the code I am using, how can I make this work?

    Please Login or Register  to view this content.
    After this code I have a list of Elseif for excel to search for the correct sheet to copy and rename.

    Thanks
    Vetequk

  5. #5
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Duplicate Sheets

    I am a novice at this programming stuff, however I lookedup user difined functions and have worked it out.

    Thanks

    Vetequk

+ 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