+ Reply to Thread
Results 1 to 6 of 6

set NewSheet = OldSheet.copy

Hybrid View

  1. #1
    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:
    Dim NewSheet as Worksheet
    Set NewSheet = ActiveWorkbook.Sheets.Add
    Deze doet het uiteraard, maar ik wil dan dus een kopie van een oude ipv een nieuwe. Eigenlijk zou ik willen doen:

    Dim NewSheet as Worksheet
    Set NewSheet = ActiveWorkbook.Sheets("bestaandesheet").Copy
    Maar dan krijg ik de melding dat dat niet kan.
    Last edited by eclapt; 11-09-2009 at 11:21 AM.

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

    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