+ Reply to Thread
Results 1 to 2 of 2

How to copy a hidden sheet in a workbook and paste it into a new worksheet and renaming it

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    1

    How to copy a hidden sheet in a workbook and paste it into a new worksheet and renaming it

    How to copy a hidden sheet in a workbook and paste it into a new worksheet and renaming it with a value which is there in one of the cells in the source excelsheet.If there is a redudndancy in renaming then the excel should overwrite.



    I am very new to vba programming and tried with a code , but that code works only for unhidden worksheets and if there is a redundancy in renaming it shows a error. I am struck. Hope i can get some help. I am currently using excel 2010

    Thank you
    Attached Files Attached Files

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

    Re: How to copy a hidden sheet in a workbook and paste it into a new worksheet and renamin

    Don't put your code3 in the ThisWorkBook module

    This will copy a sheet & rename it.

    Option Explicit

    Please Login or Register  to view this content.
    I'm not sure what you are doing with the rest of the code, but try this

    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

+ 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