+ Reply to Thread
Results 1 to 6 of 6

Trying to copy a hidden sheet using macro, run-time error

  1. #1
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2003
    Posts
    183

    Trying to copy a hidden sheet using macro, run-time error

    Basically my code is bombing at the red highlighted code.

    Error:

    "Run-time error '1004':
    Copy method of Worksheet class failed"

    Sheet "Blank Form" is a hidden sheet

    Can I alter the red section of code to work while being a hidden sheet?

    I tried a few variations but nothing seems to work..



    Please Login or Register  to view this content.
    Last edited by mrgillus; 08-27-2009 at 02:52 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Trying to copy a hidden sheet using macro, run-time error

    Unhide -> Copy -> Hide ?

  3. #3
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2003
    Posts
    183

    Re: Trying to copy a hidden sheet using macro, run-time error

    Yeh I though about doing that.. Just didn't want to have to go through the extra lines of codes if I didn't have to.. not that that adds too much.. I can do that I guess..

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Trying to copy a hidden sheet using macro, run-time error

    Tut tut don't be so lazy. It's only two lines...unless you fall foul of the dreaded unhiding-copying-hiding bug which can reduce grown men to tears...

  5. #5
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2003
    Posts
    183

    Re: Trying to copy a hidden sheet using macro, run-time error

    Oh no.. Do I dare ask what the unhide copy hide bug is so I can avoid it?

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Trying to copy a hidden sheet using macro, run-time error

    I could tell you, but then I'd have to kill you.

+ 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