+ Reply to Thread
Results 1 to 6 of 6

set NewSheet = OldSheet.copy

  1. #1
    Registered User
    Join Date
    11-09-2009
    Location
    holland, holland
    MS-Off Ver
    Excel 2007
    Posts
    3

    set NewSheet = OldSheet.copy

    Hello,

    I've created the folowing sub:

    Please Login or Register  to view this content.
    I thought this would work, but I get a warning. Is there another way to set a copy of an existing sheet to a variable?

    Thank you in advance
    Last edited by eclapt; 11-09-2009 at 11:20 AM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: set NewSheet = OldSheet.copy

    Try this
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    11-09-2009
    Location
    holland, holland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: set NewSheet = OldSheet.copy

    Okay thanks, this is useful, becaurse now i can set it to a variable. I suggest it's not possible to do this at once then....

    Thanks anyway!

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: set NewSheet = OldSheet.copy

    I suggest it's not possible to do this at once then....
    Please explain. many things are possible

  5. #5
    Registered User
    Join Date
    11-09-2009
    Location
    holland, holland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: set NewSheet = OldSheet.copy

    Maar ff in't Nederlands...

    Ik wil die nieuwe sheet (die kopie van de oude) direct aan een variabele koppelen.

    Dus wat je normaal met een nieuwe sheet doet:
    Please Login or Register  to view this content.
    Deze doet het uiteraard, maar ik wil dan dus een kopie van een oude ipv een nieuwe. Eigenlijk zou ik willen doen:

    Please Login or Register  to view this content.
    Maar dan krijg ik de melding dat dat niet kan.
    Last edited by eclapt; 11-09-2009 at 11:21 AM.

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

    Re: set NewSheet = OldSheet.copy

    eclapt,

    Please take a few minutes to read the frum rules, and then edit both of your posts to add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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