+ Reply to Thread
Results 1 to 4 of 4

i need a macro if a worksheet name exist rename to a new worksheet

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    68

    i need a macro if a worksheet name exist rename to a new worksheet

    im using a macro that splits coulmn A and renames the worksheet to the names i listed below the problem is i have mutiply worksheets so this code just overwrite what i had from the previous sheet. I would like it to create another worksheet if the worksheet name exist already for exampl. i would like to do the following if NY worksheet exist to create and paste the new data in NY2 and so on for NJ.



    Please Login or Register  to view this content.
    Last edited by daillest319; 01-24-2012 at 04:55 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: i need a macro if a worksheet name exist rename to a new worksheet

    Where is the data available which needs to be copied?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: i need a macro if a worksheet name exist rename to a new worksheet

    One way:

    Please Login or Register  to view this content.
    Last edited by shg; 01-24-2012 at 03:25 PM.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-09-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    68

    Re: i need a macro if a worksheet name exist rename to a new worksheet

    Thanky you worked perfect

+ 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