+ Reply to Thread
Results 1 to 2 of 2

Copying entire sheet to a new workbook (and ignoring macros used for that sheet)

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Copying entire sheet to a new workbook (and ignoring macros used for that sheet)

    I'm trying to copy a sheet to a new workbook and save it by using a macro. I found this code (http://www.vbaexpress.com/kb/getarticle.php?kb_id=359) which works all and well, except when it runs into a sheet that uses a macro (a button or a cell selection change).

    Basically, I need to copy paste all the values without pasting any macros used (in order to upload the document correctly, it is required to not have any VBA within it).

    Does anyone know how to do this?

    Thanks

  2. #2
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Copying entire sheet to a new workbook (and ignoring macros used for that sheet)

    When you copy a worksheet and paste into another, the macros in the first aren't included. Is it possible that you're talking about copying the VALUES in the first, and pasting them into the second without the formulas?

    So in sheet 1 you have in cell A1
    = 1+2 (displaying "3")

    You want to transfer only the "3" to the new workbook?

    If so, can you not copy the entire sheet and use paste special in the new one?

+ 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