+ Reply to Thread
Results 1 to 8 of 8

Function to check the sheet name exist or not based on sheet values

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Function to check the sheet name exist or not based on sheet values

    Hi,

    I need to check when one of the values in the column is equal to a worksheet that is currently in the excel file. Just a message box that says something like “A worksheet currently exists with the name of a value in this list. Please rename the current worksheet”. When the user gets the message box, they should be able to click “OK” and the function ends.
    Is it possible to modify this code?
    Please Login or Register  to view this content.
    Thanks in advance!
    Last edited by narendrabr; 02-11-2014 at 12:39 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Function to check the sheet name exist or not based on sheet values

    can you attach a sample file ?
    you can use this code

    Please Login or Register  to view this content.
    Last edited by patel45; 02-11-2014 at 02:43 AM.
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Function to check the sheet name exist or not based on sheet values

    Hi

    I have attached the macro enabled sheet.
    can you please modify the code to solve the above stated issue?

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Function to check the sheet name exist or not based on sheet values

    Basically the execution should stop when the sheet name already exist and ask a message to rename the sheet with different name.
    Thanks

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Function to check the sheet name exist or not based on sheet values

    try this code
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Function to check the sheet name exist or not based on sheet values

    Can you please modify my original code in the attached spreadsheet.
    Thanks!

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Function to check the sheet name exist or not based on sheet values

    I can not understand your code

  8. #8
    Forum Contributor
    Join Date
    08-12-2012
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Function to check the sheet name exist or not based on sheet values

    Basically the code is splitting sheets based on column values.

+ 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. Replies: 4
    Last Post: 03-04-2012, 08:34 AM
  2. macro to check if a value exist in sheet and add it if it doesnt
    By RetroGun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2011, 02:35 AM
  3. Check if Column Exist
    By izet99 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2009, 02:43 PM
  4. VBA - Check if selected worksheets exist
    By Lucifix in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2009, 05:04 AM
  5. [SOLVED] Check if a value exist in a column
    By DJ Steffo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2006, 10:40 AM

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