+ Reply to Thread
Results 1 to 9 of 9

Copy and Rename a Sheet

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Copy and Rename a Sheet

    Hi All,

    I found a macro in this forum which copies and renames the sheet to a specific name entered by the user in the dialogue box.

    But the code copies entire sheet as it is.

    I would like to know if we have to copy only the Format and Values and not formulas to the new sheet, is it possible to achieve this.

    It would be really great if anyone can help me on this.

    Regards,
    Sri



    Please Login or Register  to view this content.
    Last edited by sreeks; 08-28-2010 at 02:45 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copy and Rename a Sheet

    Hi sreeks

    Please wrap your code in code tags, before the moderators get you...

    Forum rules
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button.

    Cheers

  3. #3
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Copy and Rename a Sheet

    Thank you Marco..

    I will make sure this wont happen again..

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copy and Rename a Sheet

    Try this
    Please Login or Register  to view this content.

    Hope this helps
    Last edited by Marcol; 08-28-2010 at 01:13 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Copy and Rename a Sheet

    Hi Marco,

    This is working perfectly. Thanks a bunch.. This will save a lot of time for me.

    Added to this, is there a possibility to mention the sheet to be copied in a dialogue box rather than explicitly mentioning in the code.

    The objective is to run the macro and mention the sheet to be copied, if sheet does not exist, it will throw a message. Once Input Sheet name is entered, we then enter the Output Sheet name as mentioned in the code..

    Best Regards,
    Sri

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copy and Rename a Sheet

    Have a look again, you may have missed my edited Post.

    I'll try to get back to you soon, got to sign off for a while.

    Maybe someone else will help sooner.

  7. #7
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Copy and Rename a Sheet

    Hi Marco,

    Thank you for the above code.
    It perfectly does what I wanted to do.

    True apologies for the redundant post. My only intention was to close the thread since you have already provided a solution for the question which I initially asked.

    Best Regards,
    Sri
    Last edited by sreeks; 08-28-2010 at 03:30 PM.

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Copy and Rename a Sheet

    Sorry wrong thread????
    Last edited by protonLeah; 08-28-2010 at 04:17 PM.
    Ben Van Johnson

  9. #9
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Copy and Rename a Sheet

    Hi Photon,

    I have opened a new thread since this is closed.

    Kindly request you to refer the link below:
    http://www.excelforum.com/excel-prog...t-to-copy.html

    Best Regards,
    Srikanth
    Last edited by sreeks; 08-28-2010 at 04:09 PM.

+ 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