+ Reply to Thread
Results 1 to 3 of 3

Copy sheet to new workbook but not the Macro buttons

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Copy sheet to new workbook but not the Macro buttons

    Hi Guys,
    I know there are several ways for this but there is some other parameter in play.

    So I copy 2 sheets from a workbook to a new workbook.
    On these 2 sheets there are "buttons" which trigger a macro.
    I do not want these buttons to be copied/saved.

    However the sheets also contain a pivot with pivot chart and the other sheet a chart.
    Now the ways I found tend to also delete the chart and/or the pivotchart!

    Of course that is something I do not want.
    What would be the right way? So only the macro buttons but not the charts?
    Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy sheet to new workbook but not the Macro buttons

    Hi,

    After the .Copy instruction use code like the following

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Copy sheet to new workbook but not the Macro buttons

    Thanks this was indeed what I needed

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro for copy sheet in another workbook
    By saidul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 05:03 AM
  2. [SOLVED] macro to copy rows from a sheet in one workbook to a sheet in a different workbook...
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-16-2013, 01:36 PM
  3. Replies: 0
    Last Post: 04-26-2013, 03:40 AM
  4. Macro, copy UNLOCKED cell range of sheet in open workbook to workbook template
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2012, 11:18 AM
  5. Copy/paste macro from one sheet to another assigning buttons
    By noidea28 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 08:44 PM

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