+ Reply to Thread
Results 1 to 2 of 2

How do I export a worksheet into it's own workbook with an ActiveX Button?

  1. #1
    Registered User
    Join Date
    10-25-2017
    Location
    Chicago, IL
    MS-Off Ver
    2013
    Posts
    15

    How do I export a worksheet into it's own workbook with an ActiveX Button?

    Hello,

    I have a workbook with multiple tabs and what I'd like to do is create an ActiveX button (or any button) that when clicked copies the worksheet and opens it into another workbook with just that tab. Is this doable? Just a note, I'm a beginner to excel coding so need a lot of direction.

    Thanks,

    Laura

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: How do I export a worksheet into it's own workbook with an ActiveX Button?

    Hi Laura,

    The code that you need is:

    Please Login or Register  to view this content.
    Copy that into a new module into VBA and when you run it, it will copy the sheet that is currently active to a new workbook.

    To assign it to a "button" you can either use a Form Control button or even just a shape and then just right click on the shape and select "Assign Macro" and then select the code "CopySheet".

    Hope this helps
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

+ 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. ActiveX Command Button combined with ActiveX List Boxes – VBA Code Needed
    By Stlcards13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2017, 02:56 PM
  2. I'm Stuck...Userform / Command Button export to worksheet in same workbook
    By KG23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2016, 08:36 PM
  3. Access ActiveX Command Button from different Workbook
    By be7it2a7mar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2015, 05:06 PM
  4. [SOLVED] Copy ActiveX Button and Code to another Worksheet
    By Jan Lichtenbelt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2014, 07:20 AM
  5. [SOLVED] ActiveX Control Button in Protected Worksheet - Excel 2010
    By cblp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2014, 11:48 PM
  6. [SOLVED] ActiveX Command Button Not Working On Some Computers When Workbook Is Shared
    By Samuel K in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2012, 10:12 AM
  7. Master button to filter all records in ONE worksheet and export to new workbook
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2011, 02:05 PM

Tags for this Thread

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